title: Proper way to test if a value is numeric in C#
body: <p>I just need to know if the value is numeric. I don't need to do anything with the value. Is this the best way? Feel dirty creating a variable that I won't ever use beyond this:</p>
  
  <pre><code>int val;
  if(int.TryParse(txtFoo.Text, out val))
  {
      ....
  }
  </code></pre>