bool? GetBool(bool? defaultValue = null)

Get the current value as a bool.

Parameters

Name Description
defaultValue The default value to use if the value is not a bool.

Return

The value as a bool.