C# Класс Simplify.Web.ModelBinding.Binders.Parsers.StringToSpecifiedObjectParser

Provides string to specified type parsing
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
IsTypeValidForParsing ( Type type ) : bool

Determines whether specified type is valid for parsing.

ParseBool ( string value ) : bool

Parses the boolean from string.

ParseDateTime ( string value, string format = null ) : System.DateTime

Parses the date time from string.

ParseDecimal ( string value ) : decimal

Parses the decimal from string.

ParseEnum ( string value, Type enumType ) : object

Parses the enum from string.

ParseInt ( string value ) : int

Parses the int from string.

ParseLong ( string value ) : long

Parses the long from string.

ParseNullableBool ( string value ) : bool?

Parses the nullable boolean from string.

ParseNullableDateTime ( string value, string format = null ) : DateTime?

Parses the date time from string.

ParseNullableDecimal ( string value ) : decimal?

Parses the nullable decimal from string.

ParseNullableInt ( string value ) : int?

Parses the nullable int from string.

ParseNullableLong ( string value ) : long?

Parses the nullable long from string.

ParseString ( string value ) : string

Parses the string.

ParseUndefined ( string value, Type parsingType, string format = null ) : object

Determine variable type and parses it from string.

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

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

Determines whether specified type is valid for parsing.
public static IsTypeValidForParsing ( Type type ) : bool
type System.Type The type.
Результат bool

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

Parses the boolean from string.
public static ParseBool ( string value ) : bool
value string The value.
Результат bool

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

Parses the date time from string.
public static ParseDateTime ( string value, string format = null ) : System.DateTime
value string The value.
format string The format.
Результат System.DateTime

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

Parses the decimal from string.
public static ParseDecimal ( string value ) : decimal
value string The value.
Результат decimal

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

Parses the enum from string.
public static ParseEnum ( string value, Type enumType ) : object
value string The value.
enumType System.Type Type of the enum.
Результат object

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

Parses the int from string.
public static ParseInt ( string value ) : int
value string The value.
Результат int

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

Parses the long from string.
public static ParseLong ( string value ) : long
value string The value.
Результат long

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

Parses the nullable boolean from string.
public static ParseNullableBool ( string value ) : bool?
value string The value.
Результат bool?

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

Parses the date time from string.
public static ParseNullableDateTime ( string value, string format = null ) : DateTime?
value string The value.
format string The format.
Результат DateTime?

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

Parses the nullable decimal from string.
public static ParseNullableDecimal ( string value ) : decimal?
value string The value.
Результат decimal?

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

Parses the nullable int from string.
public static ParseNullableInt ( string value ) : int?
value string The value.
Результат int?

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

Parses the nullable long from string.
public static ParseNullableLong ( string value ) : long?
value string The value.
Результат long?

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

Parses the string.
public static ParseString ( string value ) : string
value string The value.
Результат string

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

Determine variable type and parses it from string.
public static ParseUndefined ( string value, Type parsingType, string format = null ) : object
value string The value.
parsingType System.Type Type to parse.
format string The format.
Результат object