Wednesday 7 July, 2010

GET COUNTRIES LIST

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. return countryList;
  9. }

No comments:

Post a Comment