Check out example codes for "xor c#". It will help you in understanding the concepts better.

Code Example 1

//The XOR Symbol is ^

Code Example 2

float numberOne = 1;
string stringOne = "one";

if (numberOne == 1 || stringOne == "one") 
  {
  print("numberOne or stringOne = 1")
  }

Code Example 3

//The AND Symbol is &

Learn ReactJs, React Native from akashmittal.com