我正在使用此代码显示国家/地区名称:
Shared Sub DisplayCountries()
Dim lstCounTry As List(Of String) = New List(Of String)
Dim ci As CultureInfo
For Each ci In CultureInfo.GetCultures(CultureTypes.SpecificCultures)
Dim ri As System.Globalization.RegionInfo = New System.Globalization.RegionInfo(ci.LCID)
If Not lstCounTry.Contains(ri.EnglishName) Then
lstCounTry.Add(ri.EnglishName)
End If
Next
lstCounTry.Sort()
For Each item In lstCounTry
Console.WriteLine(item)
Next
End Sub
.NET Framework 中有没有一种方法可以使用相同的方法填充城市名称?