C# Класс RabbitMQ.Client.Content.PrimitiveParser

Utility class for extracting typed values from strings.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
CreateProtocolViolationException ( string targetType, object source ) : Exception

Creates the protocol violation exception.

ParseBool ( string value ) : bool

Attempt to parse a string representation of a bool.

ParseByte ( string value ) : byte

Attempt to parse a string representation of a byte.

ParseDouble ( string value ) : double

Attempt to parse a string representation of a double.

ParseFloat ( string value ) : float

Attempt to parse a string representation of a float.

ParseInt ( string value ) : int

Attempt to parse a string representation of an int.

ParseLong ( string value ) : long

Attempt to parse a string representation of a long.

ParseShort ( string value ) : short

Attempt to parse a string representation of a short.

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

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

Creates the protocol violation exception.
public static CreateProtocolViolationException ( string targetType, object source ) : Exception
targetType string Type of the target.
source object The source.
Результат System.Exception

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

Attempt to parse a string representation of a bool.
public static ParseBool ( string value ) : bool
value string
Результат bool

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

Attempt to parse a string representation of a byte.
public static ParseByte ( string value ) : byte
value string
Результат byte

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

Attempt to parse a string representation of a double.
public static ParseDouble ( string value ) : double
value string
Результат double

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

Attempt to parse a string representation of a float.
public static ParseFloat ( string value ) : float
value string
Результат float

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

Attempt to parse a string representation of an int.
public static ParseInt ( string value ) : int
value string
Результат int

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

Attempt to parse a string representation of a long.
public static ParseLong ( string value ) : long
value string
Результат long

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

Attempt to parse a string representation of a short.
public static ParseShort ( string value ) : short
value string
Результат short