C# isnumeric

There is no such method called isnumeric in C#. To check whether a string is a numeric or not, you may use TryParse method.

double d;
string s="-2.3";
if (System.Double.TryParse(s.Trim(),out d))
{
//...
}


endmemo.com © 2024  | Terms of Use | Privacy | Home