C# Class SQLDiagRunner.StringExtensions

Exibir arquivo Open project: Mitch-Wheat/SQLDiagCmd

Public Methods

Method 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 method

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

RandomiseLastNChars() public static method

public static RandomiseLastNChars ( this source, int numChars ) : string
source this
numChars int
return string

RemoveInvalidExcelChars() public static method

public static RemoveInvalidExcelChars ( this s ) : string
s this
return string

Replace() public static method

public static Replace ( this s, char separators, string newVal ) : string
s this
separators char
newVal string
return string

ReplaceInvalidFilenameChars() public static method

public static ReplaceInvalidFilenameChars ( this s, string newVal ) : string
s this
newVal string
return string