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)) { //... }