Search code examples
c#boolean-operations

Boolean Assignment Operators in C#


How does this ^= Boolean Assignment Operator work in C#, and what is the mathematical name of the ^ operator? How it is different from the & and | operators?


Solution

  • ^ means one operand should be true or false, this will return false in cause of both true/false