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

📄 genericmember2.vb

📁 大名鼎鼎的mono是.NET平台的跨平台(支持linux
💻 VB
字号:
Class GenericMember2    Class Generic(Of V)        Public Value As Integer        Function F1() As Integer            Value = 1            Return Value        End Function        Function F2() As V            Value = 2            Return Nothing        End Function        Function F3(ByVal Test As V) As Integer            Value = 3            Return Value        End Function    End Class    Shared Function Main() As Integer        Dim result As Boolean        Dim g As New generic(Of Integer)        g.f1()        result = g.value = 1 AndAlso result        g.f2()        result = g.value = 2 AndAlso result        g.f3(1)        result = g.value = 3 AndAlso result        Return CInt(result)    End FunctionEnd Class

⌨️ 快捷键说明

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