12 lines
129 B
C#
12 lines
129 B
C#
public static bool IsNumeric(string s)
|
|
{
|
|
try
|
|
{
|
|
Double.Parse(s);
|
|
return true;
|
|
}
|
|
catch
|
|
{
|
|
return false;
|
|
}
|
|
}
|