I’m looking at some C# code, and have come across the following statement:
#if DEBUG // Do something here #else // Do something else #endif >
#if DEBUG // Do something here #else // Do something else #endif
It is set with the #define directive or in the compiler settings. It is common for DEBUG to be defined in debug releases, so you could conditionally compile some code like in your example.
#define
You can read more about it on MSDN.