来自.NET的GetCountries没有交付所有国家/地区?

GGl*_*and 4 .net asp.net globalization

当我使用下面的代码(曾经工作正常)时,我现在可以使用.NET 4.6获得一个不包含纳米比亚的列表,并且在过滤之前包含Yabuuti大约50次.知道为什么或改变了什么?

    private void SetCountriesComboBox()
    {
        RegionInfo country = new RegionInfo(new CultureInfo("en-US", false).LCID);
        List countryNames = new List();
        foreach (CultureInfo cul in CultureInfo.GetCultures(CultureTypes.SpecificCultures))
        {
            country = new RegionInfo(new CultureInfo(cul.Name, false).LCID);
            countryNames.Add(country.DisplayName.ToString());
        }
        IEnumerable nameAdded = countryNames.OrderBy(names => names).Distinct();
        foreach (string item in nameAdded)
        {
            comboBox1.Items.Add(item);
        }
    }
Run Code Online (Sandbox Code Playgroud)

Pau*_*ulG 6

RegionInfo返回有关文化的信息,而不是国家.没有内置的方法来返回国家(因为他们有能力不经常改变)