NullableBoolExtensions extension

Extensions for nullable bool values.

on

Properties

isFalse bool

Available on bool?, provided by the NullableBoolExtensions extension

Returns true only when this value is non-null and false.
no setter
isTrue bool

Available on bool?, provided by the NullableBoolExtensions extension

Returns true only when this value is non-null and true.
no setter

Methods

orDefault([bool defaultValue = false]) bool

Available on bool?, provided by the NullableBoolExtensions extension

Returns this value if non-null, otherwise defaultValue.