static
bool
IsNumber
(thisType type)
Returns true if the type is a number type.
type:
returns:
static
bool
IsInteger
(thisType type)
Returns true if the type is an integer type.
type:
returns:
static
bool
IsUnsignedInteger
(thisType type)
Returns true if the type is an unsigned integer type.
type:
returns:
static
bool
IsSignedInteger
(thisType type)
Returns true if the type is a signed integer type.
type:
returns:
static
bool
IsFloatingPoint
(thisType type)
Returns true if the type is a floating point type.
type:
returns:
static
SignKind
GetSignKind
(thisType type)
Returns the signed kind for the type.
type:
returns:
throw:
static
DecimalKind
GetDecimalKind
(thisType type)
Returns the decimal kind for the type.
type:
returns:
throw:
static
BitDepth
GetBitDepth
(thisType type)
Returns the bit depth for the type.
type:
returns:
throw:
static
bool
IsSigned
(thisType type)
Returns true if the type is signed.
type:
returns:
static
bool
IsUnsigned
(thisType type)
Returns true if the type is unsigned.
type:
returns:
static
bool
NumberCanUpcastTo
(thisType source,Type target)
Returns true if the source type can upcast to the target type.
source:
target:
returns:
static
Func<string object> GetNumberParser (thisType? type)
Get a function that parses the type.
type:
returns:
static
Type
MakeGeneral
(thisType type)
If the type is a generic type then convert it to it's general form. Otherwise returns the original type.
type:
returns:
static
bool
IsEnumerable
(thisType type)
Returns true if the type is an Enumerable type.
type:
returns:
static
bool
IsList
(thisType type)
Returns true if the type is a list type.
type:
returns:
static
bool
IsDictionaryType
(thisType type)
Returns true if the type is a dictionary type.
type:
returns:
static
bool
IsListType
(thisType type)
Returns true if the type is a list type.
type:
returns:
static
Type
GetListType
(thisType type)
Gets the type of the list elements.
type:
returns:
static
Type
GetDictionaryValueType
(thisType type)
Gets the type of the dictionary elements value.
type:
returns: