public static IsCurrency ( string input ) : System.Boolean | ||
input | string | The string to process. |
return | System.Boolean |
public static Boolean IsCurrency(string input)
{
Double doubleVal;
return Double.TryParse(input, (NumberStyles.AllowCurrencySymbol|NumberStyles.AllowThousands|NumberStyles.AllowDecimalPoint|NumberStyles.AllowLeadingSign), null, out doubleVal);
}