I have the following extension method
public static bool IsValidCurrency(this string value)
{
CultureInfo culture = new CultureInfo ("en-gb");
decimal result;
return decimal.TryParse(value, NumberStyles.Currency, culture, out result);
}
I wish to have this to be culturally neutral allowing to pass $ , €, ¥ etc. into the method
Thanks
Different cultures may use the same currency symbol to mean different things. Hence there is no invariant way to read a currency.
It could however be done in the following way: