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.

One Response to “Logical XOR operator in C#”

  1. Jylan Wynne Says:

    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.

Leave a Reply