Table of Contents

Class TypeExtensions

Namespace
FluentCommand.Extensions
Assembly
FluentCommand.dll

Type extension methods.

public static class TypeExtensions
Inheritance
TypeExtensions
Inherited Members

Methods

Default(Type)

Gets the default value the specified type.

public static object Default(this Type type)

Parameters

type Type

The type to get a default value for.

Returns

object

A default value the specified type.

GetUnderlyingType(Type)

Gets the underlying type dealing with Nullable`1.

public static Type GetUnderlyingType(this Type type)

Parameters

type Type

The type.

Returns

Type

Returns a type dealing with Nullable`1.

IsNullable(Type)

Determines whether the specified type can be null.

public static bool IsNullable(this Type type)

Parameters

type Type

The type to check.

Returns

bool

true if the specified type can be null; otherwise, false.