📄 helper.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 + -