C# 클래스 ResumeFactory.Common.DataTypeConverter

不引发异常的类型转换
파일 보기 프로젝트 열기: vincentlauvlwj/FrameDAL

공개 메소드들

메소드 설명
ToDecimal ( this input, decimal &output ) : bool
ToDecimal ( this input, decimal defaultValue ) : decimal
ToDouble ( this input, double &output ) : bool
ToDouble ( this input, double defaultValue ) : double
ToInt32 ( this input, int &output ) : bool
ToInt32 ( this input, int defaultValue ) : int
isDecimal ( this input ) : bool

判断输入是否为小数

isInt ( this input ) : bool

判断输入是否为整数

isNumber ( this input ) : bool

判断输入是否为数字

메소드 상세

ToDecimal() 공개 정적인 메소드

public static ToDecimal ( this input, decimal &output ) : bool
input this
output decimal
리턴 bool

ToDecimal() 공개 정적인 메소드

public static ToDecimal ( this input, decimal defaultValue ) : decimal
input this
defaultValue decimal
리턴 decimal

ToDouble() 공개 정적인 메소드

public static ToDouble ( this input, double &output ) : bool
input this
output double
리턴 bool

ToDouble() 공개 정적인 메소드

public static ToDouble ( this input, double defaultValue ) : double
input this
defaultValue double
리턴 double

ToInt32() 공개 정적인 메소드

public static ToInt32 ( this input, int &output ) : bool
input this
output int
리턴 bool

ToInt32() 공개 정적인 메소드

public static ToInt32 ( this input, int defaultValue ) : int
input this
defaultValue int
리턴 int

isDecimal() 공개 정적인 메소드

判断输入是否为小数
public static isDecimal ( this input ) : bool
input this
리턴 bool

isInt() 공개 정적인 메소드

判断输入是否为整数
public static isInt ( this input ) : bool
input this
리턴 bool

isNumber() 공개 정적인 메소드

判断输入是否为数字
public static isNumber ( this input ) : bool
input this
리턴 bool