Wednesday, February 15, 2012

isNumeric in C#

public static bool IsInteger(string theValue)
{
try
{
Convert.ToInt32(theValue);
return true;
}
catch
{
return false;
}
}

0 comments:

Post a Comment