Method GetOrCreateValue
GetOrCreateValue<T>()
Get value of type T
if found.
Otherwise a new instance of type T
constructed using TypeConstruction utility and then set on this build context.
Declaration
public T GetOrCreateValue<T>() where T : class
Returns
Type | Description |
---|---|
T | The value or new instance of type |
Type Parameters
Name | Description |
---|---|
T | The value type. |