nothingcomparison1.vb

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

VB
25
字号
Imports SystemImports System.CollectionsImports System.ReflectionNamespace NothingComparison1    Class Test        Shared Function Char1(ByVal p As Char) As Boolean            Return p = Nothing        End Function        Shared Function Char2(ByVal p As Char) As Boolean            Return Nothing = p        End Function        Shared Function Main() As Integer            If char1(Nothing) = False Then                Return -1            ElseIf char2(Nothing) = False Then                Return -2            Else                Return 0            End If        End Function    End ClassEnd Namespace

⌨️ 快捷键说明

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