C# Class Mercurial.StringEx

This class implements IsNullOrWhiteSpace for .NET 3.5.
Afficher le fichier Open project: TargetProcess/Target-Process-Plugins Class Usage Examples

Méthodes publiques

Méthode Description
ContainsWhiteSpace ( string value ) : bool

Scans the string for any character categorized as whitespace.

EncapsulateInQuotesIfWhitespace ( string value ) : string

Add encapsulating double quotes to the value if it contains whitespace.

IsNullOrWhiteSpace ( string value ) : bool

Compares the value against null and checks if the string contains only whitespace.

Method Details

ContainsWhiteSpace() public static méthode

Scans the string for any character categorized as whitespace.
public static ContainsWhiteSpace ( string value ) : bool
value string /// The string to scan for whitespace. ///
Résultat bool

EncapsulateInQuotesIfWhitespace() public static méthode

Add encapsulating double quotes to the value if it contains whitespace.
public static EncapsulateInQuotesIfWhitespace ( string value ) : string
value string /// The value to optionally add double quotes around. ///
Résultat string

IsNullOrWhiteSpace() public static méthode

Compares the value against null and checks if the string contains only whitespace.
public static IsNullOrWhiteSpace ( string value ) : bool
value string /// The string value to check. ///
Résultat bool