Jon Jagger
jon@jaggersoft.com
Table of Contents 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 Notes DownloadECMA-334 C# Language Specificationpreviousnextprevious at this levelnext at this level 14 Expressionsprevious at this levelnext at this level 14.10 Logical operatorsprevious at this levelnext at this level 14.10.3 Boolean logical operators Paragraph 11 The predefined boolean logical operators are:
bool operator &(bool x, bool y);  
bool operator |(bool x, bool y);  
bool operator ^(bool x, bool y);  
Paragraph 21 The result of x & y is true if both x and y are true. 2 Otherwise, the result is false. Paragraph 31 The result of x | y is true if either x or y is true. 2 Otherwise, the result is false. Paragraph 41 The result of x ^ y is true if x is true and y is false, or x is false and y is true. 2 Otherwise, the result is false. 3 When the operands are of type bool, the ^ operator computes the same result as the != operator.
{ JSL }
Jagger Software Ltd
Company # 4070126
VAT # 762 5213 42
Valid HTML 4.01Valid CSS