Created
June 30, 2015 22:07
-
-
Save digioz/68f4110c5647464ea064 to your computer and use it in GitHub Desktop.
The C# Equivalent of the VB.NET IsNumeric Function
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
static bool IsNumeric(object Expression) | |
{ | |
bool isNum; | |
double retNum; | |
isNum = Double.TryParse(Convert.ToString(Expression), System.Globalization.NumberStyles.Any, System.Globalization.NumberFormatInfo.InvariantInfo, out retNum ); | |
return isNum; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment