Changes

Jump to: navigation, search

C Sharp Operators and Expressions

488 bytes added, 20:29, 14 January 2008
Comparison Operators
Clearly 10 is less than 20, resulting in a ''true'' evaluation of the ''x < y'' expression. The following table lists the full set of C# comparison operators:
 
<table border="1" cellspacing="0">
<tr style="background:#efefef;">
<th>Operator</th><th>Description</th>
<tr>
<td>x == y<td>Returns true if x is equal to y</td>
<tr>
<td>x > y<td>Returns true if x is greater than y</td>
<tr>
<td>x >= y<td>Returns true if x is greater than or equal to y</td>
<tr>
<td>x < y<td>Returns true if x is less than y</td>
<tr>
<td>x <= y<td>Returns true if x is less than or equal to y</td>
<tr>
<td>x != y<td>Returns true is x is not equal to y</td>
</table>

Navigation menu