Method Get
Get<T>(string, T)
Get a value with key of type T, or return the fallback value if no matching key is found.
Declaration
public T Get<T>(string key, T fallback = default)
Parameters
Type | Name | Description |
---|---|---|
string | key | The settings key. |
T | fallback | If no key with a value of type T is found, this value is returned. |
Returns
Type | Description |
---|---|
T |
Type Parameters
Name | Description |
---|---|
T | Type of value to search for. |