The general form for #define:
#define symbol
#define DEBUGLOG using System; class MainClass { public static void Main() { #if DEBUGLOG Console.WriteLine("In Main - Debug Enabled"); #else Console.WriteLine("In Main - No Debug"); #endif } }
In Main - Debug Enabled