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
TypeThe 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
TypeThe 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
TypeThe type to check.
Returns
- bool
true
if the specifiedtype
can be null; otherwise,false
.