In C# is it possible to get a currency symbol, like \'£\', from the 3 character currency code, in this case \'GBP\'?
Is this possible either in SQL Server or in C#?<
With the help of this thread I made a short string extension method
public static string ToCurrencySymbol(this string ISOCurrency)
{
RegionInfo region = CultureInfo.GetCultures(CultureTypes.SpecificCultures).Select(x => new RegionInfo(x.LCID)).FirstOrDefault(p => p.ISOCurrencySymbol == ISOCurrency);
return region?.ISOCurrencySymbol ?? ISOCurrency;
}