C#: Convert a UInt16 in string format into an integer(decimal)
<p>Here's the problem.</p>

<p>I ,for example,have a string "2500".Its converted from byte array into string.I have to convert it to decimal(int).</p>

<p>This is what I should get:</p>

<pre><code>string : "2500"
byte[] : {0x25, 0x00}
UInt16 : 0x0025 //note its reversed
int    : 43     //decimal of 0x0025
</code></pre>

<p>How do I do that?</p>
