Method GetValueOrDefault
GetValueOrDefault<T>()
Get value of type T
if found.
Otherwise a new instance of type T
constructed using TypeConstruction utility.
The build context is not modified.
Declaration
public T GetValueOrDefault<T>() where T : class
Returns
Type | Description |
---|---|
T | The value or new instance of type |
Type Parameters
Name | Description |
---|---|
T | The value type. |