Posted By

emregulcan on 03/30/10


Tagged

list countries c country


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

emregulcan


Get Countries List


 / Published in: C#
 

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

  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  

You need to login to post a comment.