C# Класс Microsoft.Azure.Commands.ResourceManager.Cmdlets.Extensions.StringExtensions

String extension methods
Показать файл Открыть проект

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

Метод Описание
CoalesceString ( this original ) : string

Coalesces a string.

ConcatStrings ( this source, string separator = null ) : string

Concatenates a number of strings with given separators.

EqualsAsLocation ( this location1, string location2 ) : bool

Compare two location strings.

EqualsInsensitively ( this original, string otherString ) : bool

Compares two string values insensitively.

IsDateTime ( this source, string format, DateTimeStyles styles ) : bool

Determines whether the specified source string is a valid date time.

IsDecimal ( this source, NumberStyles allowedNumberStyle ) : bool

Determines whether the specified source string is a valid decimal.

SplitRemoveEmpty ( this source ) : string[]

Splits the string with given separators and removes empty entries.

StartsWithInsensitively ( this original, string otherString ) : bool

Compares two string values insensitively.

ToNormalizedLocation ( this location ) : string

Normalize a location string.

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

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

Coalesces a string.
public static CoalesceString ( this original ) : string
original this The original string.
Результат string

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

Concatenates a number of strings with given separators.
public static ConcatStrings ( this source, string separator = null ) : string
source this The source strings.
separator string The separator string.
Результат string

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

Compare two location strings.
public static EqualsAsLocation ( this location1, string location2 ) : bool
location1 this The first location string.
location2 string The second location string.
Результат bool

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

Compares two string values insensitively.
public static EqualsInsensitively ( this original, string otherString ) : bool
original this The original string.
otherString string The other string.
Результат bool

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

Determines whether the specified source string is a valid date time.
public static IsDateTime ( this source, string format, DateTimeStyles styles ) : bool
source this The source.
format string The format.
styles DateTimeStyles The styles.
Результат bool

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

Determines whether the specified source string is a valid decimal.
public static IsDecimal ( this source, NumberStyles allowedNumberStyle ) : bool
source this The source.
allowedNumberStyle NumberStyles The allowed number style.
Результат bool

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

Splits the string with given separators and removes empty entries.
public static SplitRemoveEmpty ( this source ) : string[]
source this The source string.
Результат string[]

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

Compares two string values insensitively.
public static StartsWithInsensitively ( this original, string otherString ) : bool
original this The original string.
otherString string The other string.
Результат bool

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

Normalize a location string.
public static ToNormalizedLocation ( this location ) : string
location this The location string.
Результат string