Format currency using ISO 4217 code

It is very easy to format the currency according to the language / country code:

double money = 9.99;
var formatted = money.ToString("C", new CultureInfo("sv-SE"));

This will give the desired result (9.99 kr). However, I want to format using the ISO 4217 code .
There is a RegionInfo.ISOCurrencySymbol property , but I have not found a way to list all regions / cultures available on Windows Phone.

So, is there a way to format the currency using the ISO 4217 code on Windows Phone 8?

+4
source share

Source: https://habr.com/ru/post/1538429/


All Articles