For the currency code ISO 4217, how do I retrieve the numeric value from within the .NET framework?
For example, the numeric value for the US Dollar is 840.
For the currency code ISO 4217, how do I retrieve the numeric value from within the .NET framework?
For example, the numeric value for the US Dollar is 840.
The ISO3166 currency codes (840 for U.S. Dollar, etc.) are not available in the .Net framework. All you can get from the RegionInfo
class is the ISO4217 currency code (ISOCurrencyCode
) (e.g. USD) and the CurrencySymbol (e.g. $).
You will, I'm afraid, have to download a list of the data and do the mapping yourself.