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

📄 enumb.vb

📁 大名鼎鼎的mono是.NET平台的跨平台(支持linux
💻 VB
字号:
Imports SystemModule M    Enum E        A        B    End Enum    Function InInt(ByVal i As Integer) As Object    End Function    Function InLong(ByVal i As Long) As Object    End Function    Function InEnum(ByVal e As E) As Object    End Function    Function Main() As Integer        Dim e1 As E        e1 = E.A        If e1.GetType().ToString() <> GetType(E).ToString() Then            System.Console.WriteLine("#A1: wrong type") : Return 1        End If        If E.A.GetType().ToString() <> GetType(E).ToString() Then            System.Console.WriteLine("#A2: wrong type") : Return 1        End If        Dim e2 As E        e2 = e1        Dim i As Integer        i = e2        InInt(e2)        InInt(E.B)        InLong(e2)        InLong(E.B)        InEnum(e2)        InEnum(0)    End FunctionEnd Module

⌨️ 快捷键说明

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