Conditional Compilation Else If Format C# with Example
#define PRODUCTION #define TRIAL using System; namespace CSharpPreprocessor { class ConditionalCompilation { static void Main() { #if EXPERIMENTAL Console.WriteLine("Compiled for experimental version."); #elif EXPERIMENTAL && TRIAL Console.WriteLine("Testing experimental trial version."); #elif PRODUCTION && TRIAL Console.Error.WriteLine("Testing Production trial version."); #else Console.WriteLine("All in Production version"); #endif Console.WriteLine("This is in all versions."); } } }