Bitwise Compound Assignments : Bitwise Operator « Operator « C# / CSharp Tutorial






All of the binary bitwise operators can be used in compound assignments.

x = x ^ 127;
  x ^= 127;
3.9.Bitwise Operator
3.9.1.The Bitwise Operators
3.9.2.Bitwise Compound Assignments