stringhandling1.vb

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

VB
37
字号
Imports SystemImports System.CollectionsImports System.ReflectionNamespace StringHandling1    Class Test        ''' <summary>        ''' This function takes a string as an argument and split it on the space character,        ''' with the " as acceptable character.        ''' </summary>        Shared Function ParseLine(ByVal strLine As String) As String()            Dim strs As New ArrayList            strs.Add("a")            'Add the strings to the return value            Dim stt(strs.Count - 1) As String            For i As Integer = 0 To strs.Count - 1                stt(i) = DirectCast(strs(i), String)            Next            Return stt        End Function        Shared Function Main(ByVal cmds() As String) As Integer            Dim args() As String            Try                args = Parseline("a")                Return 0            Catch ex As exception                console.writeline(Ex.message)                console.writeline(ex.stacktrace)                Return 1            End Try        End Function    End ClassEnd Namespace

⌨️ 快捷键说明

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