C# #define Test using System; #if(Test) writeMessage("123"); #else writeMessage("321"); #endif VB.net #Const Test = False #If (Test) Then writeMessage("123") #Else writeMessage("321") #End If C# Preprocessor Directives Directives (Visual Basic)