Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / docs / ecma334 / 14.9.4.xml
1 <?xml version="1.0"?>
2 <clause number="14.9.4" title="Boolean equality operators">
3   <paragraph>The predefined boolean equality operators are: <code_example><![CDATA[
4 bool operator ==(bool x, bool y);  
5 bool operator !=(bool x, bool y);  
6 ]]></code_example></paragraph>
7   <paragraph>The result of == is true if both x and y are true or if both x and y are false. Otherwise, the result is false. </paragraph>
8   <paragraph>The result of != is false if both x and y are true or if both x and y are false. Otherwise, the result is true. When the operands are of type <keyword>bool</keyword>, the != operator produces the same result as the ^ operator. </paragraph>
9 </clause>