how does xor work in c# code example Example 1: XOR C# if(var1 == 0 ^ var2 == 0) Example 2: xor c# //The XOR Symbol is ^