C# Класс ResumeFactory.Common.DataTypeConverter

不引发异常的类型转换
Показать файл Открыть проект

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

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