Binary operators with assignment

suggest change

C# has several operators that can be combined with an = sign to evaluate the result of the operator and then assign the result to the original variable.


x += y

is the same as

x = x + y

Assignment operators:

Feedback about page:

Optional: your email if you want me to get back to you:

Table Of Contents