ifstatement1.vb

来自「大名鼎鼎的mono是.NET平台的跨平台(支持linux」· VB 代码 · 共 23 行

VB
23
字号
Class IfStatement1    Class GenericArgument        Function IntMethod() As Integer            Return 0        End Function    End Class    Function Test(Of T)(ByVal Param As T) As T        Return Param    End Function    Shared Function Main() As Integer        Dim c As New GenericArgument        Dim t As New IfStatement1        If True Then            Return t.test(Of GenericArgument)(c).IntMethod()        ElseIf False = False Then            Return t.test(Of GenericArgument)(c).IntMethod()        Else            Return t.test(Of GenericArgument)(c).IntMethod()        End If    End FunctionEnd Class

⌨️ 快捷键说明

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