logical exclusive-or
using System; class XOR { static void Main() { Console.WriteLine(true ^ false); // logical exclusive-or Console.WriteLine(false ^ false); // logical exclusive-or // Bitwise exclusive-or: Console.WriteLine("0x{0:x}", 0xf8 ^ 0x3f); } }