title: C# converting string to hex and XOR on Hex numbers
body: <p>Im tring to do an XOR on 2 hex numbers to create a unique hex number</p>
  
  <p>ex. 7F4 ^ 65D which would equal 1A9</p>
  
  <p>I understand how the XOR should work but every time I try to convert the string hex number:</p>
  
  <pre><code>string hex1 = "7F4";
  int hexInt = Convert.ToInt32(hex1, 16);
  </code></pre>
  
  <p>I end up with a number: 2036</p>
  
  <p>How do I keep the integrity of the hex number so I can do an XOR on the 2 hex numbers?</p>