title: C# Hex String into Hex int
body: <p><b> Can someone edit this to look better? Thanks! </b></p>
  
  <p>I'm trying to have a string that is a Hex value but it is set by a third party (Not The Code Itself) and set it back to an int but still be a Hex value. C# Will let you have an int that is equal to a Hex if you have the 0x in front.</p>
  
  <p>Code:</p>
  
  <pre><code>string HexValue = "0x0FC";
  int OtherValue = Convert.ToInt(HexValue);
  </code></pre>
  
  <p>When I try this I get: 'Input string was not in a correct format.'</p>