Class Types
Provides cached Type instances for common .NET primitives and helper groups for numeric classifications.
public static class Types
- Inheritance
-
Types
- Inherited Members
Properties
Byte
public static Type Byte { get; }
Property Value
DateTime
public static Type DateTime { get; }
Property Value
DateTimeOffset
Gets the Type instance that represents DateTimeOffset.
public static Type DateTimeOffset { get; }
Property Value
Decimal
public static Type Decimal { get; }
Property Value
Double
public static Type Double { get; }
Property Value
FloatingPointNumber
Gets the collection of floating-point numeric types.
public static IReadOnlyList<Type> FloatingPointNumber { get; }
Property Value
Guid
public static Type Guid { get; }
Property Value
Int16
public static Type Int16 { get; }
Property Value
Int32
public static Type Int32 { get; }
Property Value
Int64
public static Type Int64 { get; }
Property Value
Number
Gets the collection of numeric types, both signed and unsigned.
public static IReadOnlyList<Type> Number { get; }
Property Value
SByte
public static Type SByte { get; }
Property Value
SignedNumber
Gets the collection of signed numeric types.
public static IReadOnlyList<Type> SignedNumber { get; }
Property Value
Single
public static Type Single { get; }
Property Value
String
public static Type String { get; }
Property Value
TimeSpan
public static Type TimeSpan { get; }
Property Value
UInt16
public static Type UInt16 { get; }
Property Value
UInt32
public static Type UInt32 { get; }
Property Value
UInt64
public static Type UInt64 { get; }
Property Value
UIntPtr
public static Type UIntPtr { get; }
Property Value
UnsignedNumber
Gets the collection of unsigned numeric types.
public static IReadOnlyList<Type> UnsignedNumber { get; }
Property Value
_128BitsNumberIF
Gets the collection of numeric types that may represent one-hundred-and-twenty-eight-bit numbers or floats.
public static IReadOnlyList<Type> _128BitsNumberIF { get; }
Property Value
_16BitsNumberI
Gets the collection of integer numeric types limited to sixteen bits.
public static IReadOnlyList<Type> _16BitsNumberI { get; }
Property Value
_32BitsNumberF
Gets the collection of numeric types that may represent thirty-two-bit integers or floats.
public static IReadOnlyList<Type> _32BitsNumberF { get; }
Property Value
_32BitsNumberI
Gets the collection of integer numeric types limited to thirty-two bits.
public static IReadOnlyList<Type> _32BitsNumberI { get; }
Property Value
_64BitsNumberI
Gets the collection of integer numeric types limited to sixty-four bits.
public static IReadOnlyList<Type> _64BitsNumberI { get; }
Property Value
_64BitsNumberIF
Gets the collection of numeric types that may represent sixty-four-bit integers or floats.
public static IReadOnlyList<Type> _64BitsNumberIF { get; }
Property Value
_8BitsNumberI
Gets the collection of integer numeric types limited to eight bits.
public static IReadOnlyList<Type> _8BitsNumberI { get; }
Property Value
Methods
Nullable(Type)
Creates a nullable wrapper type for the provided value type.
public static Type Nullable(this Type type)
Parameters
typeTypeType that should be made nullable.
Returns
- Type
The nullable version of the provided type.
Exceptions
- ArgumentException
Thrown when the type cannot be made nullable.