A Boolean operator is an operator that performs a
calculation whose result is either true or false. C# has several very
useful Boolean operators, the simplest of which is the
NOT operator, which is represented by the exclamation point (
operator negates a Boolean value, yielding the opposite of that value.
In the preceding example, if the value of the variable
areYouReady is true, the value of the expression
!areYouReady is false.
Two Boolean operators that you will frequently use are the
==) and inequality (
!=) operators. You use these binary operators to find out whether one value is the same as another value of the same type. The following table summarizes ...