title: C# Big-endian ulong from 4 bytes
body: <p>Im trying to cast a 4 byte array to an ulong in C#. I'm currently using this code:</p>
  
  <pre><code>atomSize = BitConverter.ToUInt32(buffer, 0);
  </code></pre>
  
  <p>The byte[4] contains this:</p>
  
  <p><code>0 0 0 32</code></p>
  
  <p>However, the bytes are Big-Endian. Is there a simple way to convert this Big-Endian ulong to a Little-Endian ulong?</p>