enumerate iso currency codes

E

Eric

I know this is a property of the RegionInfo class. I figure somewhere in the
framework is the actual enumeration, which I would like to use.

I want to use it to support a Money class I need, along the lines of Fowler,
which would have an attribute of Currency.

Any help much appreciated.
 
M

Michael C

Eric said:
I know this is a property of the RegionInfo class. I figure somewhere in
the framework is the actual enumeration, which I would like to use.

Are you asking if there is an enum that represents the different currencies
around the world? I haven't used currencies in any form in dot net but I
would be very suprised if this was an enum. An enum would not be used for
something that is not really that static.

Michael
 
H

Hooyoo

Unicode Currency Symbols
Format: Four columns separated by 0x0020: #1 [#2] [#3] #4

Column #1 is the Unicode number in hex (0xXXXX)
Column #2 is character displayed by numeric call ('')
Column #3 is character displayed by their unicode value ('keyboard')
Column #4 is the Unicode name
Unicode version: 3.2
Unicode Characters Description
------- ------------ -----------
x0000 chars
----- -----
0x0024 [ $ ] [ $ ] DOLLAR SIGN (USA)
0x00A2 [ ¢ ] [ ¢ ] CENT SIGN
0x00A3 [ £ ] [ £ ] POUND SIGN (Great Britain)
0x00A4 [ ¤ ] [ ¤ ] CURRENCY SIGN
0x00A5 [ ¥ ] [ ¥ ] YEN SIGN (Japan)
0x09F2 [ ৲ ] [ ৲ ] BENGALI RUPEE MARK
0x09F3 [ ৳ ] [ ৳ ] BENGALI RUPEE SIGN
0x20A0 [ â‚  ] [ â‚  ] EURO-CURRENCY SIGN (ex ECU, not EURO)
0x20A1 [ â‚¡ ] [ â‚¡ ] COLON SIGN (Costa Rica, El Salvador)
0x20A2 [ â‚¢ ] [ â‚¢ ] CRUZEIRO SIGN (Brazil)
0x20A3 [ â‚£ ] [ â‚£ ] FRENCH FRANC SIGN (France)
0x20A4 [ ₤ ] [ ₤ ] LIRA SIGN (Italy, Turkey)
0x20A5 [ â‚¥ ] [ â‚¥ ] MILL SIGN (USA (1/10 cent))
0x20A6 [ ₦ ] [ ₦ ] NAIRA SIGN (Nigeria)
0x20A7 [ ₧ ] [ ₧ ] PESETA SIGN (Spain)
0x20A8 [ ₨ ] [ ₨ ] RUPEE SIGN (India)
0x20A9 [ â‚© ] [ â‚© ] WON SIGN (Korea)
0x20AA [ ₪ ] [ ₪ ] NEW SHEQEL SIGN (Israel)
0x20AB [ â‚« ] [ â‚« ] DONG SIGN (Vietnam)
0x20AC [ € ] [ € ] EURO SIGN (European Monetary Union)
0x20AD [ â‚­ ] [ â‚­ ] KIP SIGN (Laos)
0x20AE [ â‚® ] [ â‚® ] TUGRIK SIGN (Mongolia)
0x20AF [ ₯ ] [ ₯ ] DRACHMA SIGN (Greece)
0x20B0 [ â‚° ] [ â‚° ] GERMAN PENNY SIGN
0x20B1 [ ₱ ] [ ₱ ] PESO SIGN
0x0E3F [ ฿ ] [ ฿ ] THAI CURRENCY SYMBOL BAHT
0x17DB [ ៛ ] [ ៛ ] KHMER CURRENCY SYMBOL RIEL
 
E

Eric

RegionInfo ri = new RegionInfo("en-US");
string usIsoCurrencySymbol = ri.ISOCurrencySymbol; <---- usIsoCurrencySymbol
= "USD"

The snippet above shows the property I'm looking for, although I could have
gotten the symbol ("$") and other useful info the same way. I'm starting to
suspect it might be in an xml file somewhere.

Thanks,
Eric
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top