Skip to content

Instantly share code, notes, and snippets.

@davunderscorei
Created June 11, 2013 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davunderscorei/5757081 to your computer and use it in GitHub Desktop.
Save davunderscorei/5757081 to your computer and use it in GitHub Desktop.
:'(
public static bool IsNumber(string inValue)
{
bool result = false;
if (inValue == null) return result;
try
{
float myDT = float.Parse(inValue);
result = true;
}
catch (FormatException e)
{
result = false;
}
return result;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment