title: C++ to .NET : I need help with understanding C++ code to convert it to .NET
body: <p>C++ code is :</p>
  
  <pre><code>unsigned short* ui=(unsigned short*)&amp;buf[110];
              CountDev=ui[0];
  </code></pre>
  
  <p>buf is <code>byte[]</code> and CountDev is <code>unsigned int</code></p>
  
  <p>(BCB6 Compiler x86)</p>
  
  <p>My try is : 
  F#</p>
  
  <pre><code>...CountDev  = System.BitConverter.ToInt32( [| arrayRead.[110]; arrayRead.[111] |] , 0 )
  </code></pre>
  
  <p>C#</p>
  
  <pre><code>...CountDev  = System.BitConverter.ToInt32( [arrayRead[110]; arrayRead[111]] , 0 )
  </code></pre>
  
  <p>But seriously I can't be sure about it. Check my try and tell me if I am doing it wrong please.</p>