Ad

Tuesday, July 16, 2013

Operators in C#.Net


Primary
x.y, f(x), a[x], x++, x--, new, typeof, checked, unchecked
Unary
+, -, !, ~, ++x, --x, (T)x
Arithmetic — Multiplicative
*, /, %
Arithmetic — Additive
+, -
Shift
<<, >>
Relational and type testing
<, >, <=, >=, is, as
Equality
==, !=
Logical, in order of precedence
&, ^, |
Conditional, in order of precedence
&&, ||, ?:
Assignment
=, +=, -=, *=, /=, %=, &=, |=, ^=, <<=, >>=

No comments: