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

📄 genericmethodparameter2.vb

📁 大名鼎鼎的mono是.NET平台的跨平台(支持linux
💻 VB
字号:
Imports SystemImports System.CollectionsImports System.ReflectionNamespace GenericMethodParameter2    Class ConstructorDeclaration        Shared Function Main() As Integer        End Function    End Class    Class Base(Of T)        Inherits Generic.List(Of T)    End Class    Class Derived        Inherits Base(Of Object)        Function GetSpecificMembers(Of T)() As Generic.List(Of T)            Dim result As New Generic.List(Of T)            For Each obj As Object In Me                If TypeOf obj Is T Then                    result.Add(CType(CObj(obj), T))                End If            Next            Return result        End Function    End ClassEnd Namespace

⌨️ 快捷键说明

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