C# Class UlteriusServer.Utilities.Extensions.StringExtensions

Class StringExtensions
Afficher le fichier Open project: Ulterius/server

Méthodes publiques

Méthode Description
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

Method Details

CommaSeparate() public static méthode

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

CreateMD5() public static méthode

public static CreateMD5 ( this input ) : string
input this
Résultat string

EqualsIgnoreCase() public static méthode

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.
Résultat bool

Form() public static méthode

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.
Résultat string

FormatString() public static méthode

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.
Résultat string

GetBytesReadable() public static méthode

public static GetBytesReadable ( long i ) : string
i long
Résultat string

Initialize() public static méthode

public static Initialize ( ) : void
Résultat void

IsBase64String() public static méthode

public static IsBase64String ( this s ) : bool
s this
Résultat bool

IsValidJson() public static méthode

public static IsValidJson ( this strInput ) : bool
strInput this
Résultat bool

ToSecureString() public static méthode

Returns a Secure string from the source string
public static ToSecureString ( this Source ) : SecureString
Source this
Résultat System.Security.SecureString

ToUnsecureString() public static méthode

public static ToUnsecureString ( this secureString ) : string
secureString this
Résultat string

UnicodeUtf8() public static méthode

public static UnicodeUtf8 ( this strFrom ) : string
strFrom this
Résultat string