
.NET 1.1+C# Operator Precedence
The fourteenth part of the C# Fundamentals tutorial combines information from the earlier articles. This article is a reference to the operator precedence of all operators included in the tutorial.
Operator Precedence
| Parentheses Operator |
|---|
| () |
| Member Access Operator |
|---|
| . |
| Increment / Decrement Operators |
|---|
| ++(postfix) --(postfix) ++(prefix) --(prefix) |
| Complement Operators |
|---|
| ! ~ |
| Basic Arithmetic Operators |
|---|
| * / % + - |
| Bitwise Shift Operators |
|---|
| << >> |
| Comparison Operators |
|---|
| < > <= >= |
| Equivalence Operators |
|---|
| == != |
| Logic / Bitwise Operators |
|---|
| & ^ | && || |
| Conditional Operator |
|---|
| ? |
| Assignment Operator |
|---|
| = |
| Compound Assignment Operators |
|---|
| *= /= %= += -= >>= <<= &= ^= |= |
| Null Coalescing Operator |
|---|
| ?? |
1 October 2006