title: Combining 2 Bytes (HighByte/LowByte) to a signed Int in C#
body: <p>I have been struggling with this for the past 3 hours and I'm not coming right.
  I have the highByte/lowByte values which i need to combine into a signed int called temp(I think). I know the input and the desired output, but at this point I'm thinking this might be completely offtrack.</p>
  
  <pre><code>int temp = ((highByte) &amp; 0xFF) &lt;&lt; 8 | (lowByte) &amp; 0xFF;
  </code></pre>
  
  <p>I'm using this function, but it is not returning the desired output.</p>
  
  <p>There must be something wrong with this conversion, or my logic i have applied to this problem. The Desired outcome is:</p>
  
  <blockquote>
    <p>If both highByte/lowByte bytes have the value 255, the output should
    be -1.</p>
  </blockquote>