Mega Code Archive

 
Categories / C# Tutorial / Operator
 

The Assignment Operator

It has this general form: var = expression; The general form of the shorthand is var op = expression; Thus, the arithmetic and logical assignment operators are += -= *= /= %= &= |= ^=