Reverse Byte Orders
<p>For Example : </p>

<p>I am trying to do this: 0x64CEED7E becomes 7EEDCE64.</p>

<p>This is my code.</p>

<pre><code>for (int integerTemp = 0; integerTemp &lt; 4; integerTemp++)
{
   generatedKey[integerTemp] = Convert.ToByte(((uint)(integerkey &amp; (0x000000FF   &lt;&lt; (integerTemp * 8)))) &gt;&gt; (integerTemp * 8));
}
</code></pre>

<p>What is the best way of doing this ?</p>