title: How to check whether a given string is Decimal or not in C#?
body: <p>I have done this with string values like  <code>65.34, 65,45, 34.45</code> </p>
  
  <p>Everything returns True ... </p>
  
  <pre><code>public void test()
  {
     string value = "65" 0r "65.0" 0r "1,234.54";
     decimal number;
  
     if (Decimal.TryParse(value, out number))
        MessageBox.Show(value);
     else
        MessageBox.Show("Unable to parse '{0}'.", value);
   }
  </code></pre>
  
  <p>This all returns its a Decimal .. </p>
  
  <pre><code>         If I type "0.65" .. I need to show error and it i type "65" it has to be exectued.
  </code></pre>