Method GetBool
- Namespace
- Gamelogic.Extensions
- Assembly
- Gamelogic.Extensions.dll
GetBool(string, string, bool)
Gets a boolean preference.
public static bool GetBool(string scope, string key, bool defaultValue = false)
Parameters
scopestringThe scope namespace.
keystringThe key within the scope.
defaultValueboolThe value to return if the key does not exist.
Returns
- bool
The stored value, or
defaultValueif not found.