Ben d'état

Ben Scott


~/Logical XOR operator in C#

04 Mar 2008

For reference the logical XOR operator in C# is the same as the bitwise XOR operator: ^. This always gets me because usually the logical boolean operators are like && and   versus the bitwise operators (& and ). I guess it’s the same thing anyway, just a bitwise XOR operation on two booleans. Fascinating.

comments powered by Disqus