localdeclarationc.vb

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

VB
27
字号
' Author:'   Maverson Eduardo Schulze Rosa (maverson@gmail.com)'' GrupoTIC - UFPR - Federal University of ParanáImports SystemModule LocalDeclarationC    Function Main() As Integer        Dim i As Integer = 0        'Declaring a Local Static Variable in a Method Child Block.        If i = 0 Then            'this is declared as ".field  private static  specialname".            Static Dim stVarModule As Integer            'this uses stsfld.            stVarModule = 10            'this uses ldsfld.            If stVarModule <> 10 Then                System.Console.WriteLine("#LDC1 - Load  Local Static Variable Failed") : Return 1            End If        End If    End FunctionEnd Module

⌨️ 快捷键说明

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