C# 클래스 Microsoft.Azure.Commands.ResourceManager.Cmdlets.Extensions.StringExtensions

String extension methods
파일 보기 프로젝트 열기: Azure/azure-powershell

공개 메소드들

메소드 설명
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