conditionalconstantsa.vb

来自「大名鼎鼎的mono是.NET平台的跨平台(支持linux」· VB 代码 · 共 22 行

VB
22
字号
Imports SystemModule ConditionalConstant    Function Main() As Integer        Dim value As Integer        'Testing the scope of the conditional constant#Const a = True#If a Then		   #Const a=False 		   value=10#End If#If a Then		value=20#End If        If value <> 10 Then            System.Console.WriteLine("ConditionalConstantA:Failed-conditional constant should have global scope") : Return 1        End If        'Redefining a conditional constant#Const a = 5    End FunctionEnd Module

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?