C# Класс Mercurial.StringEx

This class implements IsNullOrWhiteSpace for .NET 3.5.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

ContainsWhiteSpace() публичный статический Метод

Scans the string for any character categorized as whitespace.
public static ContainsWhiteSpace ( string value ) : bool
value string /// The string to scan for whitespace. ///
Результат bool

EncapsulateInQuotesIfWhitespace() публичный статический Метод

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. ///
Результат string

IsNullOrWhiteSpace() публичный статический Метод

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. ///
Результат bool