C# Класс AGENT.Contrib.Util.Parse

Provides additional parsing operations
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

BytesToString() публичный статический Метод

Convert an array of bytes to a string
public static BytesToString ( byte bytes ) : string
bytes byte
Результат string

TryParseBool() публичный статический Метод

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
Результат bool

TryParseDouble() публичный статический Метод

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
Результат bool

TryParseInt() публичный статический Метод

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
Результат bool

TryParseLong() публичный статический Метод

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
Результат bool

TryParseShort() публичный статический Метод

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
Результат bool

TryParseUInt() публичный статический Метод

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
Результат bool

TryParseULong() публичный статический Метод

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
Результат bool

TryParseUShort() публичный статический Метод

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
Результат bool