C# Class MsieJavaScriptEngine.Helpers.NumericHelpers

Numeric helpers
显示文件 Open project: Taritsyn/MsieJavaScriptEngine Class Usage Examples

Public Methods

Method Description
CastDoubleValueToCorrectType ( double value ) : object

Casts a double value to the correct type

IsNumericType ( Type type ) : bool

Gets a value indicating whether the specified type is one of the numeric types

Method Details

CastDoubleValueToCorrectType() public static method

Casts a double value to the correct type
public static CastDoubleValueToCorrectType ( double value ) : object
value double Double value
return object

IsNumericType() public static method

Gets a value indicating whether the specified type is one of the numeric types
public static IsNumericType ( Type type ) : bool
type System.Type The type
return bool