Created
June 11, 2013 14:00
-
-
Save davunderscorei/5757081 to your computer and use it in GitHub Desktop.
:'(
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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