C# Class org.GraphDefined.Vanaheimr.Illias.Geometry.Tools.NumericTypeExtensions

Some type extensions to check for numeric types.
显示文件 Open project: Vanaheimr/Illias

Public Methods

Method Description
IsArithmetic ( this Type ) : System.Boolean

Checks whether the given type is arithmetic or not.

IsFloatingPoint ( Type Type ) : System.Boolean

Checks whether the given type is any kind of a floating point or not.

IsInteger ( this Type ) : System.Boolean

Checks whether the given type is any kind of an integer or not.

IsNumeric ( this Type ) : System.Boolean

Checks whether the given type is any kind of a numeric or not.

Method Details

IsArithmetic() public static method

Checks whether the given type is arithmetic or not.
public static IsArithmetic ( this Type ) : System.Boolean
Type this A type.
return System.Boolean

IsFloatingPoint() public static method

Checks whether the given type is any kind of a floating point or not.
public static IsFloatingPoint ( Type Type ) : System.Boolean
Type System.Type A type.
return System.Boolean

IsInteger() public static method

Checks whether the given type is any kind of an integer or not.
public static IsInteger ( this Type ) : System.Boolean
Type this A type.
return System.Boolean

IsNumeric() public static method

Checks whether the given type is any kind of a numeric or not.
public static IsNumeric ( this Type ) : System.Boolean
Type this A type.
return System.Boolean