Using system.text.regularExpressions; // Namespace public bool isnumber (String InputValue) {/ * Judgment input is a real number * / string pattern = @ "^ [0-9] / d * [.]? / d * $ "; Match m = regex.match (InputValue, Pattern); if (m.success) {Return true;} else {Return False;}
}