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

📄 propertyg.vb

📁 大名鼎鼎的mono是.NET平台的跨平台(支持linux
💻 VB
字号:
'Author:'   Satya Sudha K (ksathyasudha@novell.com)'' (C) 2005 Novell, Inc.''' Property taking 'ParamArray' parameter, overloading of propertiesImports SystemModule M    Dim a As Integer() = {1, 2, 3}    Property Prop(ByVal ParamArray i As Integer()) As Integer        Get            Return i.Length        End Get        Set(ByVal value As Integer)            a(0) = Value        End Set    End Property    Property Prop(ByVal i As Integer) As Integer        Get            Return a(i)        End Get        Set(ByVal value As Integer)            a(i) = Value        End Set    End Property    Function Main() As Integer        If Prop(2, 3, 4, 5) <> 4 Then        End If        Prop(2, 3, 4, 5) = 6        If (Prop(0) <> 6) Then            Throw New exception("A#1 - Overloaded properties not working properly")        End If        Prop(1) = 9        If (Prop(1) <> 9) Then            Throw New exception("A#2 - Overloaded properties not working properly")        End If    End FunctionEnd Module

⌨️ 快捷键说明

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