转换 TwoLetterIsoCode 国家代码

Convert TwoLetterIsoCode Country Code

我想问一下是否有一种干净快速的方法可以使用 C# 将 TwoLetterIsoCode 相应地转换为英文名称?

一个例子:

US -> United Staates

DE -> Germany

FR -> France

等等

试试这个:

var displayName = new RegionInfo(twoLettersIsoCode).EnglishName

区域信息class在here

中描述

也是我自己发现的:)

 private static string GetCountryName(string CountryCode)
        {
            RegionInfo RegInfo = new RegionInfo(CountryCode);
            return RegInfo.EnglishName;
        }