I thought I would give you the answer of a static helper class, for example:
static class CurrencySymbolHelper { public static string GetCurrencySymbol(CultureInfo cultureInfo, bool getAlternate) { if (cultureInfo.Name == "ro-RO" && getAlternate) return "EUR"; return cultureInfo.NumberFormat.CurrencySymbol; } }
You can pass any variable that you want to use in this method and perform any operations that you want. Call the following:
var cultureInfo = new CultureInfo("ro-RO"); Console.WriteLine(CurrencySymbolHelper.GetCurrencySymbol(cultureInfo,false));
The problem is that you should call this helper when you want to get currency information instead of cultureInfo.NumberFormat.CurrencySymbol
astro boy
source share