How to check if IsNumeric
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/894263/how-to-identify-if-string-contain-a-number">How to identify if string contain a number?</a>  </p>
</blockquote>



<p>In VB there's an IsNumeric function, is there something similar in c#?  </p>

<p>To get around it, I just wrote the code:</p>

<pre><code>    if (Int32.Parse(txtMyText.Text.Trim()) &gt; 0)
</code></pre>

<p>I was just wondering if there is a better way to do this.</p>
