Posted on 07/01/2021 10:58:13
No - it will use the region set on the currency. The entire point...
But why would you call that method if you need to do something else?
Here is the code - make it your own:
if (!string.IsNullOrEmpty(currency?.CultureInfo) && currency.CultureInfo.Contains("-"))
{
var formatInfo = NumberFormatCache.GetCache(currency.Code);
if (currency.Rounding is object && !string.IsNullOrEmpty(currency.Rounding.Id))
{
value = Round(currency, value);
}
if (showSymbol)
{
if (currency.UseCurrencyCodeForFormat)
{
return value.ToString("C", formatInfo).Replace(formatInfo.CurrencySymbol, currency.Code);
}
else
{
return value.ToString("C", formatInfo);
}
}
else
{
return value.ToString("N", formatInfo);
}
}