Home TypeExtensions Class
TypeExtensions Class
Cancel

TypeExtensions Class

Namespace: Json.Schema.Generation

Inheritance: TypeExtensions 🡒 object

Provides informative methods for types.

Methods

IsArray(this Type type)

Determines whether the type is a simple, one-dimensional, non-keyed collection.

Declaration

1
public static bool IsArray(this Type type)
ParameterTypeDescription
typeTypeThe type.

Returns

true if the type represents an array; false otherwise.

IsNullableNumber(this Type type)

Determines if the type is a nullable value type, i.e. System.Nullable`1.

Declaration

1
public static bool IsNullableNumber(this Type type)
ParameterTypeDescription
typeTypeThe type

Returns

True if the type is System.Nullable`1; false otherwise.

IsNullableValueType(this Type type)

Determines if the type is a nullable value type, i.e. System.Nullable`1.

Declaration

1
public static bool IsNullableValueType(this Type type)
ParameterTypeDescription
typeTypeThe type

Returns

True if the type is System.Nullable`1; false otherwise.

Contents