views:

320

answers:

1

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.

ISO Code 4217

+3  A: 

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.

Matt Howells