在C#ASP.net中将ALPHA-2转换为ALPHA-3

Chr*_*Kee 1 c# asp.net country-codes

是否有快速内置的方法将ALPHA-2(GB)转换为C#中的ALPHA-3(GBR),而无需创建所有数组.

jas*_*son 6

// using System.Globalization;
RegionInfo info = new RegionInfo("GB");
string ISOAlpha3 = info.ThreeLetterISORegionName; // ISOAlpha3 == "GBR"
Run Code Online (Sandbox Code Playgroud)