C# Class SQLDiagRunner.StringExtensions

Afficher le fichier Open project: Mitch-Wheat/SQLDiagCmd

Méthodes publiques

Méthode Description
Contains ( this source, string toCheck, System.StringComparison comp ) : bool
RandomiseLastNChars ( this source, int numChars ) : string
RemoveInvalidExcelChars ( this s ) : string
Replace ( this s, char separators, string newVal ) : string
ReplaceInvalidFilenameChars ( this s, string newVal ) : string

Method Details

Contains() public static méthode

public static Contains ( this source, string toCheck, System.StringComparison comp ) : bool
source this
toCheck string
comp System.StringComparison
Résultat bool

RandomiseLastNChars() public static méthode

public static RandomiseLastNChars ( this source, int numChars ) : string
source this
numChars int
Résultat string

RemoveInvalidExcelChars() public static méthode

public static RemoveInvalidExcelChars ( this s ) : string
s this
Résultat string

Replace() public static méthode

public static Replace ( this s, char separators, string newVal ) : string
s this
separators char
newVal string
Résultat string

ReplaceInvalidFilenameChars() public static méthode

public static ReplaceInvalidFilenameChars ( this s, string newVal ) : string
s this
newVal string
Résultat string