title: converting hex number to signed short
body: <p>I'm trying to convert a string that includes a hex value into its equivalent signed short in C#</p>
  
  <p>for example: </p>
  
  <p>the equivalent hex number of -1 is 0xFFFF (in two bytes)</p>
  
  <p>I want to do the inverse, i.e I want to convert 0xFFFF into -1</p>
  
  <p>I'm using</p>
  
  <pre><code> string x = "FF";
   short y = Convert.ToInt16(x,16);
  </code></pre>
  
  <p>but the output y is 255 instead of -1, I need the signed number equivalent</p>
  
  <p>can anyone help me?
  thanks</p>