Table of Contents

Class Types

Namespace
Utils.Objects
Assembly
Utils.dll

Provides cached Type instances for common .NET primitives and helper groups for numeric classifications.

public static class Types
Inheritance
Types
Inherited Members

Properties

Byte

Gets the Type instance that represents byte.

public static Type Byte { get; }

Property Value

Type

DateTime

Gets the Type instance that represents DateTime.

public static Type DateTime { get; }

Property Value

Type

DateTimeOffset

Gets the Type instance that represents DateTimeOffset.

public static Type DateTimeOffset { get; }

Property Value

Type

Decimal

Gets the Type instance that represents decimal.

public static Type Decimal { get; }

Property Value

Type

Double

Gets the Type instance that represents double.

public static Type Double { get; }

Property Value

Type

FloatingPointNumber

Gets the collection of floating-point numeric types.

public static IReadOnlyList<Type> FloatingPointNumber { get; }

Property Value

IReadOnlyList<Type>

Guid

Gets the Type instance that represents Guid.

public static Type Guid { get; }

Property Value

Type

Int16

Gets the Type instance that represents short.

public static Type Int16 { get; }

Property Value

Type

Int32

Gets the Type instance that represents int.

public static Type Int32 { get; }

Property Value

Type

Int64

Gets the Type instance that represents long.

public static Type Int64 { get; }

Property Value

Type

Number

Gets the collection of numeric types, both signed and unsigned.

public static IReadOnlyList<Type> Number { get; }

Property Value

IReadOnlyList<Type>

SByte

Gets the Type instance that represents sbyte.

public static Type SByte { get; }

Property Value

Type

SignedNumber

Gets the collection of signed numeric types.

public static IReadOnlyList<Type> SignedNumber { get; }

Property Value

IReadOnlyList<Type>

Single

Gets the Type instance that represents float.

public static Type Single { get; }

Property Value

Type

String

Gets the Type instance that represents string.

public static Type String { get; }

Property Value

Type

TimeSpan

Gets the Type instance that represents TimeSpan.

public static Type TimeSpan { get; }

Property Value

Type

UInt16

Gets the Type instance that represents ushort.

public static Type UInt16 { get; }

Property Value

Type

UInt32

Gets the Type instance that represents uint.

public static Type UInt32 { get; }

Property Value

Type

UInt64

Gets the Type instance that represents ulong.

public static Type UInt64 { get; }

Property Value

Type

UIntPtr

Gets the Type instance that represents UIntPtr.

public static Type UIntPtr { get; }

Property Value

Type

UnsignedNumber

Gets the collection of unsigned numeric types.

public static IReadOnlyList<Type> UnsignedNumber { get; }

Property Value

IReadOnlyList<Type>

_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

IReadOnlyList<Type>

_16BitsNumberI

Gets the collection of integer numeric types limited to sixteen bits.

public static IReadOnlyList<Type> _16BitsNumberI { get; }

Property Value

IReadOnlyList<Type>

_32BitsNumberF

Gets the collection of numeric types that may represent thirty-two-bit integers or floats.

public static IReadOnlyList<Type> _32BitsNumberF { get; }

Property Value

IReadOnlyList<Type>

_32BitsNumberI

Gets the collection of integer numeric types limited to thirty-two bits.

public static IReadOnlyList<Type> _32BitsNumberI { get; }

Property Value

IReadOnlyList<Type>

_64BitsNumberI

Gets the collection of integer numeric types limited to sixty-four bits.

public static IReadOnlyList<Type> _64BitsNumberI { get; }

Property Value

IReadOnlyList<Type>

_64BitsNumberIF

Gets the collection of numeric types that may represent sixty-four-bit integers or floats.

public static IReadOnlyList<Type> _64BitsNumberIF { get; }

Property Value

IReadOnlyList<Type>

_8BitsNumberI

Gets the collection of integer numeric types limited to eight bits.

public static IReadOnlyList<Type> _8BitsNumberI { get; }

Property Value

IReadOnlyList<Type>

Methods

Nullable(Type)

Creates a nullable wrapper type for the provided value type.

public static Type Nullable(this Type type)

Parameters

type Type

Type that should be made nullable.

Returns

Type

The nullable version of the provided type.

Exceptions

ArgumentException

Thrown when the type cannot be made nullable.