Bec d'état - Rebecca Scott

Blog | Links | Archive
About | Resume | Advisor profile | Projects | Contact

~/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.