Hash sign (#) in VB.NET

前端 未结 2 969
孤城傲影
孤城傲影 2021-01-15 09:12

I have this legacy code that I am working with and there is code like this all over the place:

    #If PRE611 = True Then
        \'Do Something
    #Else
                


        
2条回答
  •  爱一瞬间的悲伤
    2021-01-15 09:50

    It's a pre-processor directive.

    It essentially means if PRE611 is defined as true (in the pre-processor) to compile whatever follows.

提交回复
热议问题