Macro in VB.Net : Macro « Language Basics « VB.Net






Macro in VB.Net

Macro in VB.Net
Imports System

Public Class MainClass
    Shared Sub Main()
#If CONFIG = "Debug" Then
        System.Console.WriteLine("Debug")
#ElseIf CONFIG = "Release" Then
        System.Console.WriteLine("Release")
#ElseIf CONFIG = "InterimBuild" Then
        System.Console.WriteLine("InterimBuild")
#Else
        System.Console.WriteLine("Unknown build type")
#End If
    End Sub
End Class


           
       








Related examples in the same category

1.#Const DEBUG_LEVEL#Const DEBUG_LEVEL