While writing a piece of code, I came across where using Numberformatinfo
, I had to write two currency symbols for a country at the same time.
Taiwan, now uses TWD
as their currency symbol along with 起
. So they write their Currency as NTD 23,900 起
.
But just by using NumberformatInfo, I am not able to put two currency symbols at the same time.
public NumberFormatInfo GetCurrencyFormat(string countryCode, string languageCode)
{var cultureInfo = GetCultureInfo(countryCode, languageCode);
var currencyFormat = GetCurrencyFormat(cultureInfo);
return currencyFormat;
}
Here I can change the symbol, but to only one of the above mentioned, which can be placed either before the amount or after.