IsNumeric
Checks if a string value is numeric
Source
public static bool IsNumeric(this string value)
{
Regex regex = new Regex(@"[0-9]");
return regex.IsMatch(value);
}
Example
Public void Test()
ExtensionMethod.NET Home of 880 C#, Visual Basic, F# and Javascript extension methods
Checks if a string value is numeric
public static bool IsNumeric(this string value)
{
Regex regex = new Regex(@"[0-9]");
return regex.IsMatch(value);
}
Public void Test()