📄 conditionalconstantsa.vb
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -