Changes

Jump to: navigation, search

C Sharp Operators and Expressions

58 bytes added, 19:36, 14 January 2008
C# Operator Precedence
The following table outlines the C# operator precedence order from highest precedence to lowest:
<tableborder="1" cellspacing="0"><tr style="background:#efefef;">
<th>Operators</th>
<tr>
It should come as no surprise that the assignment operators have the lowest precedence since you would not want to assign the result of an expression until that expression had been fully evaluated.
Don't worry about memorizing the above table. Most programmers simply use parentheses to ensure that their expressions are evaluation evaluated in the desired order.
== Compound Assignment Operators ==

Navigation menu