Understand how bitwise operators work (C# and VB.NET examples) - CodeProject
The XOR operator (Exclusive OR) How the XOR operator works The Exclusive OR operator is not the same as the Inclusive OR operator. If you use an Inclusive OR, 1 | 1 (1 Or 1 in VB.NET) is 1. But if you use an XOR operator, 1 ^ 1 (1 Xor 1 in VB.NET) is not ...