#ElseIf : Pre Compile « Development « VB.Net Tutorial






public class Test
   public Shared Sub Main
#If CONFIG = "Debug" Then
        Console.WriteLine("Debug")
#ElseIf CONFIG = "Release" Then
        Console.WriteLine("Release")
#ElseIf CONFIG = "InterimBuild" Then
        Console.WriteLine("InterimBuild")
#Else
        Console.WriteLine("Unknown build type")
#End If

   End Sub
End class
Very Good.








7.23.Pre Compile
7.23.1.#if, #Else, #End If
7.23.2.#Const
7.23.3.#ElseIf