The bitwise XOR (exclusive or) operator (^) also takes two integral operands. For each bit position, the result is 1 if either but not both operands contain 1; otherwise, the result is 0.
result = b1 ^ b2;
Or C++/CLI
http://www.cplusplus.com/forum/general/36226/#msg195978