📄 paramarrayc.vb
字号:
Option Strict OffModule PA_1_0_0 Class C Function F(ByVal ParamArray args() As Long) Dim a As Integer a = args.Length If a <> 3 Then System.Console.WriteLine("#A1, Unexcepted behavoiur of PARAM ARRAY") : Return 1 End If End Function Function F(ByVal ParamArray args() As Integer) Dim a As Integer a = args.Length If a <> 4 Then System.Console.WriteLine("#A1, Unexcepted behavoiur of PARAM ARRAY") : Return 1 End If End Function End Class Function Main() As Integer Dim obj As Object = New C() Dim a As Long() = {1, 2, 3} obj.F(a) obj.F(10, 20, 30, 40) End FunctionEnd Module
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -