Decimal to binary conversion in c #
<p>How to convert a decimal no into binary in c #</p>

<p>Now i'm using like:</p>

<pre><code>      String str="8";
      String Ans= Convert.ToInt32(str,2).ToString();
</code></pre>

<p>But its throwing some Exceptions.</p>

<p>Please help me to do this</p>

<p>Thanks in advance</p>
