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