C# 클래스 Simplify.Web.ModelBinding.Binders.Parsers.StringToSpecifiedObjectParser

Provides string to specified type parsing
파일 보기 프로젝트 열기: i4004/Simplify.Web 1 사용 예제들

공개 메소드들

메소드 설명
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