Method GetOrDefault
GetOrDefault<T>(string, T)
Gets a setting, or a default value if the setting does not exist.
public T GetOrDefault<T>(string name, T defaultValue)
Parameters
name
stringThe name.
defaultValue
TThe default value.
Returns
- T
The value of the setting, or a default value if the setting does not exist.
Type Parameters
T
The type of the value.