[]
public static class TypeEx
Name | Description |
---|---|
GetDefaultProperties(Type) | Get default property list of the specified types. |
GetDefaultPublicCtor(Type) | Returns default public instance parameter-less constructor for the specified type. |
GetEnumValues<T>(Type) | Returns the values of an Enum type (Type.IsEnum == true). |
GetIndexerProperties(Type) | Get indexed property list of the specified type. |
GetNonNullableType(Type) | Returns the underlying type of a nullable type: e.g. if Type = double?, then returns double. |
GetTypeInfo(Type) | |
IsNullableType(Type) | Returns true if the type is a nullable type. |
IsNumeric(Type) | Returns true if the type is any of the numeric data types: double, float, int, uint, long, ulong, short, ushort, sbyte, byte and decimal. |
IsNumericIntegral(Type) | Returns true if the type is any of the integral numeric data types: int, uint, long, ulong, short, ushort, sbyte and byte. |
IsNumericIntegralSigned(Type) | Returns true if the type is any of the integral signed numeric data types: int, long, short and sbyte. |
IsNumericIntegralUnsigned(Type) | Returns true if the type is any of the integral unsigned numeric data types: uint, ulong, ushort and byte. |
IsNumericNonIntegral(Type) | Returns true if the type is any of the numeric non-integral data types: double, float and decimal. |
New(Type) | Creates a new instance of this type using the default constructor. |
New<T>(Type) | Creates a new instance of this type using the default constructor. |
New<T>(Type, Action<T>) | Creates a new instance of this type using the default constructor. |