title: Convert 2 bytes to a number
body: <p>I have a control that has a byte array in it.</p>
  
  <p>Every now and then there are two bytes that tell me some info about number of future items in the array.</p>
  
  <p>So as an example I could have:</p>
  
  <pre>
  ...
  ...
  Item [4] = 7
  Item [5] = 0
  ...
  ...</pre>
  
  <p>The value of this is clearly 7.</p>
  
  <p>But what about this?</p>
  
  <pre>
  ...
  ...
  Item [4] = 0
  Item [5] = 7
  ...
  ...</pre>
  
  <p>Any idea on what that equates to (as an normal int)?</p>
  
  <p>I went to binary and thought it may be 11100000000 which equals 1792.  But I don't know if that is how it really works (ie does it use the whole 8 items for the byte).</p>
  
  <p>Is there any way to know this with out testing?</p>
  
  <p>Note: I am using C# 3.0 and visual studio 2008</p>