Get Countries List


/ Published in: C#
Save to your folder(s)

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..


Copy this code and paste it in your HTML
  1. public static ArrayList GetAllCountires()
  2. {
  3. foreach (CultureInfo ci in CultureInfo.GetCultures(CultureTypes.AllCultures & ~CultureTypes.NeutralCultures))
  4. {
  5. RegionInfo ri = new RegionInfo(ci.LCID);
  6. countryList.Add(ri.EnglishName);
  7. }
  8.  
  9. return countryList;
  10. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.