Class TypeExtensions
Helper functions supporting use of Type.
Inherited Members
Namespace: IAI.DT.DataModel.Utilities
Assembly: IAI.DT.DataModel.dll
Syntax
public static class TypeExtensions
Methods
GetFriendlyName(Type)
Gets the human readable name of a type.
Declaration
public static string GetFriendlyName(this Type type)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | type | The type for which the name is required |
Returns
| Type | Description |
|---|---|
| string | The human readable name of the provided type. |
GetNonNullableType(Type)
Get the Non nullable version of the type
Declaration
public static Type GetNonNullableType(this Type type)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | type | The type for which a non nullable equivalent is required. |
Returns
| Type | Description |
|---|---|
| Type | The non nullable type |
GetNullableType(Type)
Get the nullable version of the type.
Declaration
public static Type GetNullableType(this Type type)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | type | The type for which a nullable equivalent is required. |
Returns
| Type | Description |
|---|---|
| Type | The nullable type |