C# 클래스 UlteriusServer.Utilities.Extensions.StringExtensions

Class StringExtensions
파일 보기 프로젝트 열기: Ulterius/server

공개 메소드들

메소드 설명
CommaSeparate ( this @this ) : string[]

Splits a string into an array of strings, the string is split by commas.

CreateMD5 ( this input ) : string
EqualsIgnoreCase ( this @this, string other ) : bool

Determines whether two String objects contain the same data, ignoring the case of the letters in the String; uses Ordinal comparison.

Form ( this format ) : string

Replaces one or more format items in a specified string with the string representation of a specified object.

FormatString ( string format, FormatTokenFlags flags ) : string

The Function which does all the heavy lifting.

GetBytesReadable ( long i ) : string
Initialize ( ) : void
IsBase64String ( this s ) : bool
IsValidJson ( this strInput ) : bool
ToSecureString ( this Source ) : SecureString

Returns a Secure string from the source string

ToUnsecureString ( this secureString ) : string
UnicodeUtf8 ( this strFrom ) : string

메소드 상세

CommaSeparate() 공개 정적인 메소드

Splits a string into an array of strings, the string is split by commas.
public static CommaSeparate ( this @this ) : string[]
@this this
리턴 string[]

CreateMD5() 공개 정적인 메소드

public static CreateMD5 ( this input ) : string
input this
리턴 string

EqualsIgnoreCase() 공개 정적인 메소드

Determines whether two String objects contain the same data, ignoring the case of the letters in the String; uses Ordinal comparison.
public static EqualsIgnoreCase ( this @this, string other ) : bool
@this this
other string The other string to compare against the current String for equality.
리턴 bool

Form() 공개 정적인 메소드

Replaces one or more format items in a specified string with the string representation of a specified object.
public static Form ( this format ) : string
format this A composite format string.
리턴 string

FormatString() 공개 정적인 메소드

The Function which does all the heavy lifting.
public static FormatString ( string format, FormatTokenFlags flags ) : string
format string A composite format string
flags FormatTokenFlags The flags which specify how the string should be interpreted.
리턴 string

GetBytesReadable() 공개 정적인 메소드

public static GetBytesReadable ( long i ) : string
i long
리턴 string

Initialize() 공개 정적인 메소드

public static Initialize ( ) : void
리턴 void

IsBase64String() 공개 정적인 메소드

public static IsBase64String ( this s ) : bool
s this
리턴 bool

IsValidJson() 공개 정적인 메소드

public static IsValidJson ( this strInput ) : bool
strInput this
리턴 bool

ToSecureString() 공개 정적인 메소드

Returns a Secure string from the source string
public static ToSecureString ( this Source ) : SecureString
Source this
리턴 System.Security.SecureString

ToUnsecureString() 공개 정적인 메소드

public static ToUnsecureString ( this secureString ) : string
secureString this
리턴 string

UnicodeUtf8() 공개 정적인 메소드

public static UnicodeUtf8 ( this strFrom ) : string
strFrom this
리턴 string