Operator C# Tutorial

Operator                        Symbol                     Sample
Addition Assignment             +=                         variable+=5;
Subtraction Assignment          -=                         variable-=10;
Multiplication Assignment       *=                         variable*=5;
Division Assignment             /=                         variable/=5;
Modulus Assignment              %=                         variable%=3;
And Assignment                  &=                         variable&=3;
Or Assignment                   |=                         variable|=3;
XOR Assignment                  ^=                         variable^= 3;
Left-Shift Assignment           <<=                        variable<<=3;
Right-Shift Assignment          >>=                        variable>>=1