GetOrNew<T>()
Gets a value from the cache or adds a default value if it does not exist yet.
Declaration
T GetOrNew<T>() where T : new()Returns
| Type | Description |
|---|---|
| T | Either the value of type |
Type Parameters
| Name | Description |
|---|---|
| T | Type of value. |
Gets a value from the cache or adds a default value if it does not exist yet.
T GetOrNew<T>() where T : new()| Type | Description |
|---|---|
| T | Either the value of type |
| Name | Description |
|---|---|
| T | Type of value. |