Data:
var countries = new Dictionary();
countries.Add(\"AF\",\"Afghanistan\");
countries.Add(\"US\",\"United States\");
cou
I know this post is old, but for people looking for list of coutries this is the easy way :
// List of coutries
List CountryList = new List();
CultureInfo[] CInfoList = CultureInfo.GetCultures(CultureTypes.SpecificCultures);
CountryList.Add("");
foreach (CultureInfo CInfo in CInfoList)
{
RegionInfo R = new RegionInfo(CInfo.LCID);
if (!(CountryList.Contains(R.EnglishName)))
{
CountryList.Add(R.EnglishName);
}
}
CountryList.Sort();