Alex Rivera | Logout

Country codes list - C#

Asked 2009-08-24T18:48:17.163
19

I have a string which I need to verify if it's a Country code. The culture is German. Is there any method that I can call to get a list of Country codes in a German culture without having to type out all the 274 (?) codes myself?

Thanks, Teja.

Edit
Report

2 Answers

4

If you only need countries/regions, you can make use of the RegionInfo class: http://msdn.microsoft.com/en-us/library/system.globalization.regioninfo.aspx

answered 2009-08-24T18:55:39.443
1

http://cldr.unicode.org/ - common standard multilanguage database include country list and other localizable data.

answered 2011-02-08T09:57:53.370

Your Answer