C# Class AGENT.Contrib.Util.Parse

Provides additional parsing operations
Afficher le fichier Open project: nothingmn/AGENT.Contrib

Méthodes publiques

Méthode Description
BytesToString ( byte bytes ) : string

Convert an array of bytes to a string

TryParseBool ( string s, bool &val ) : bool

Attempt to parse the provided string value.

TryParseDouble ( string s, double &i ) : bool

Attempt to parse the provided string value.

TryParseInt ( string s, int &i ) : bool

Attempt to parse the provided string value.

TryParseLong ( string s, long &i ) : bool

Attempt to parse the provided string value.

TryParseShort ( string s, short &i ) : bool

Attempt to parse the provided string value.

TryParseUInt ( string s, uint &i ) : bool

Attempt to parse the provided string value.

TryParseULong ( string s, ulong &i ) : bool

Attempt to parse the provided string value.

TryParseUShort ( string s, ushort &i ) : bool

Attempt to parse the provided string value.

Method Details

BytesToString() public static méthode

Convert an array of bytes to a string
public static BytesToString ( byte bytes ) : string
bytes byte
Résultat string

TryParseBool() public static méthode

Attempt to parse the provided string value.
public static TryParseBool ( string s, bool &val ) : bool
s string String value to be parsed
val bool Variable to set successfully parsed value to
Résultat bool

TryParseDouble() public static méthode

Attempt to parse the provided string value.
public static TryParseDouble ( string s, double &i ) : bool
s string String value to be parsed
i double Variable to set successfully parsed value to
Résultat bool

TryParseInt() public static méthode

Attempt to parse the provided string value.
public static TryParseInt ( string s, int &i ) : bool
s string String value to be parsed
i int Variable to set successfully parsed value to
Résultat bool

TryParseLong() public static méthode

Attempt to parse the provided string value.
public static TryParseLong ( string s, long &i ) : bool
s string String value to be parsed
i long Variable to set successfully parsed value to
Résultat bool

TryParseShort() public static méthode

Attempt to parse the provided string value.
public static TryParseShort ( string s, short &i ) : bool
s string String value to be parsed
i short Variable to set successfully parsed value to
Résultat bool

TryParseUInt() public static méthode

Attempt to parse the provided string value.
public static TryParseUInt ( string s, uint &i ) : bool
s string String value to be parsed
i uint Variable to set successfully parsed value to
Résultat bool

TryParseULong() public static méthode

Attempt to parse the provided string value.
public static TryParseULong ( string s, ulong &i ) : bool
s string String value to be parsed
i ulong Variable to set successfully parsed value to
Résultat bool

TryParseUShort() public static méthode

Attempt to parse the provided string value.
public static TryParseUShort ( string s, ushort &i ) : bool
s string String value to be parsed
i ushort Variable to set successfully parsed value to
Résultat bool