^= Operator (C# Reference)
Visual Studio 2008
The exclusive-OR assignment operator.
An expression of the form
x ^= y
is evaluated as
x = x ^ y
except that x is only evaluated once. The ^ operator performs a bitwise exclusive-OR operation on integral operands and logical exclusive-OR on bool operands.
The ^= operator cannot be overloaded directly, but user-defined types can overload the ^ operator (see operator).
points to not operator
when this page mentions that it cannot overload ^= it says that ! can be overloaded, shouldn't this be the ^ operator instead?
- 7/24/2009
- Charles Lambert