C# Class Mercurial.StringEx

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

Public Methods

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

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

EncapsulateInQuotesIfWhitespace() public static method

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. ///
return string

IsNullOrWhiteSpace() public static method

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. ///
return bool