Operators are indicators in your code that express an operation to perform. An operator might be an assignment from one variable to another, a comparison between two values, or a mathematical calculation among values. There are many operators available to .NET programmers. We do not cover them all here, but many of the more common operators are discussed in the following sections.
Assignment operators are used to assign one variable or value to another. The most simple example is the equal (
=) operator. This simply assigns the value on the right of the operator to the variable on the left side of the assignment (as in
x = y). Other operators enable you to do assignment with addition (
+=), assignment with subtraction ...