Return to Snippet

Revision: 25432
at March 30, 2010 16:53 by emregulcan


Initial Code
public static ArrayList GetAllCountires()
        {
            foreach (CultureInfo ci in CultureInfo.GetCultures(CultureTypes.AllCultures & ~CultureTypes.NeutralCultures))
            {
                RegionInfo ri = new RegionInfo(ci.LCID);
                countryList.Add(ri.EnglishName);
            }

            return countryList;
        }

Initial URL

                                

Initial Description
You can get all countries list by this method.
Also you can find some details for countries like;
- original name,
- three letter ISO region name,
- three letter WINDOWS region name, 
- currency symbol
etc..

Initial Title
Get Countries List

Initial Tags
list, c

Initial Language
C#