⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 paramarrayc.vb

📁 大名鼎鼎的mono是.NET平台的跨平台(支持linux
💻 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 + -