Table of Contents

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

scope string

The scope namespace.

key string

The key within the scope.

defaultValue bool

The value to return if the key does not exist.

Returns

bool

The stored value, or defaultValue if not found.