Can I use Trace.WriteLine in release mode?
And what is the main difference between Trace.Write and Debug.Write?
The difference is in Release mode.
Debug.Write will not be compiled into the code when the DEBUG symbol is not defined, i.e. compiling in Release mode.
However, Trace.Write will be compiled in both Debug mode and Release mode.