C# Class AGENT.Contrib.Util.Parse

Provides additional parsing operations
Datei anzeigen Open project: nothingmn/AGENT.Contrib

Public Methods

Method 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 method

Convert an array of bytes to a string
public static BytesToString ( byte bytes ) : string
bytes byte
return string

TryParseBool() public static method

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
return bool

TryParseDouble() public static method

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
return bool

TryParseInt() public static method

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
return bool

TryParseLong() public static method

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
return bool

TryParseShort() public static method

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
return bool

TryParseUInt() public static method

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
return bool

TryParseULong() public static method

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
return bool

TryParseUShort() public static method

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
return bool