Wednesday 4 January 2012

Operators

  C# operators and their precedence closely resemble the operators in other languages of the C family.
Similar to C++, classes can overload most operators, defining or redefining the behavior of the operators in contexts where the first argument of that operator is an instance of  that class, but doing so is often discouraged for clarity. Following are the built-in behaviors of C# operators.