Converting country codes in .NET

前端 未结 10 1708
难免孤独
难免孤独 2020-12-04 23:55

In .NET is there any way to convert from three letter country codes (defined in ISO 3166-1 alpha-3) to two letter language codes (defined in ISO 3166-1 alpha-2) eg. convert

10条回答
  •  半阙折子戏
    2020-12-05 00:49

    See Nuget package 'Bia.Countries'
    https://github.com/ilyabreev/Bia.Countries done a good job with

    Bia.Countries.Iso3166.Countries.GetCountryByAlpha2()

提交回复
热议问题