title: typeof() to check for Numeric values
body: <p>what is the easiest way to check if a typeof() is mathematically usable(numeric).</p>
  
  <p>do i need to use the <a href="https://stackoverflow.com/questions/1730838/c-sharp-check-value-stored-inside-string-object-is-decimal-or-not">TryParse method</a> or check it by this:</p>
  
  <pre><code>if (!(DC.DataType == typeof(int) || DC.DataType == typeof(double) || DC.DataType == typeof(long) || DC.DataType == typeof(short) || DC.DataType == typeof(float)))
       {
             MessageBox.Show("Non decimal data cant be calculated");
             return;
       }
  </code></pre>
  
  <p>if there is a more easy way to achieve this, your free to suggest</p>