Changes

Jump to: navigation, search

C Sharp Operators and Expressions

2 bytes added, 20:34, 14 January 2008
C# Operator Precedence
The following table outlines the C# operator precedence order from highest precedence to lowest:
 
<table border="1" cellspacing="0">
<td>Lowest<td>= *= /= %= += -= <<= >>= &= ^= |=</td>
<table>
 
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.

Navigation menu