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

📄 withstatementb.vb

📁 大名鼎鼎的mono是.NET平台的跨平台(支持linux
💻 VB
字号:
Option Strict OffImports SystemModule WithStatementB    Class C1        Public a1 As Integer = 10        Friend a2 As String = "Hello"        Function f1()            Dim flag As Boolean = True            If a1 = 20 And a2 = "Hello World" Then                flag = False            End If            If a1 = 10 And a2 = "Hello" Then                flag = False            End If            If flag <> False Then                System.Console.WriteLine("#A WithStatement not working") : Return 1            End If        End Function    End Class    Function Main() As Integer        Dim a As New C1()        With a            a.a1 = 20            .a2 = "Hello World"            Dim x As New C1()            a = x  ' Tried reassiging the object inside With statement            If .a1 = a.a1 Or .a2 = a.a2 Then                System.Console.WriteLine("#WS1 - With Statement failed") : Return 1            End If            a.f1()            .f1()        End With    End FunctionEnd Module

⌨️ 快捷键说明

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