BooleanExtensions extension

on

Methods

and(bool? other) bool?
Performs a logical and operation between this Boolean and the other one. Unlike the && operator, this function does not perform short-circuit evaluation. Both this and other will always be evaluated.
not() bool?
Returns the inverse of this boolean.
or(bool other) bool?
Performs a logical or operation between this Boolean and the other one. Unlike the || operator,
xor(bool other) bool?
Performs a logical xor operation between this Boolean and the other one.