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

📄 helper.vb

📁 大名鼎鼎的mono是.NET平台的跨平台(支持linux
💻 VB
字号:
Public Class Helper#If DEBUG Then    Shared Function nextID() As Integer        Static id As Integer        id += 1        Return id    End Function#End If    ''' <summary>    ''' Quotes an array of strings.    ''' </summary>    ''' <param name="Strings"></param>    ''' <remarks></remarks>    Shared Function QuoteStrings(ByVal Strings() As String) As String()        For i As Integer = 0 To Strings.Length - 1            If Strings(i).StartsWith("""") = False AndAlso Strings(i).EndsWith("""") = False AndAlso Strings(i).IndexOf(" "c) >= 0 Then                Strings(i) = """" & Strings(i) & """"            End If        Next        Return Strings    End Function    Shared Function NormalizePath(ByVal Path As String) As String        Return Path.Replace("\", System.IO.Path.DirectorySeparatorChar)    End Function    Shared Function IsOnMono() As Boolean        Return GetType(Integer).GetType.Name = "MonoType"    End FunctionEnd Class

⌨️ 快捷键说明

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