Logical XOR operator in C#
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.
March 5th, 2008 at 6:11 pm
Hi Ben, I half wish that you’d blog about something that I understood enough to make an educated comment
Anyway, good to see that you’re posting more often.