The following method will take in a string and return a bool value if it’s a valid number:
///
/// Uses Regular expressions to see if we are a number
///
///
///
static bool IsNumeric(string inputString)
{
return System.Text.RegularExpressions.Regex.IsMatch(inputString, “^[0-9]+$”);
}