liuaoran 35e0add9b2 compdfkit(win) | 1 tahun lalu | |
---|---|---|
.. | ||
lib | 1 tahun lalu | |
.signature.p7s | 1 tahun lalu | |
LICENSE.md | 1 tahun lalu | |
Nager.Country.4.0.0.nupkg | 1 tahun lalu | |
README.md | 1 tahun lalu | |
icon.png | 1 tahun lalu | |
readme.txt | 1 tahun lalu |
The Worldwirde Country Informations are available over the nuget package. The collection contains the Informations for 250 Countries.
If you need the translations of the countries you will find in the further nuget package Nager.Country.Translation
ICountryProvider countryProvider = new CountryProvider();
var countryInfo = countryProvider.GetCountry(Alpha2Code.DE);
//countryInfo.CommonName -> Germany
//countryInfo.Alpha3Code -> DEU
//countryInfo.NumericCode -> 276
//countryInfo.Region -> Europe
//countryInfo.SubRegion -> WesternEurope
//countryInfo...
ICountryProvider countryProvider = new CountryProvider();
var countryInfo = countryProvider.GetCountryByName("Germany");
//countryInfo.Alpha2Code -> DE
//countryInfo.Alpha3Code -> DEU
//countryInfo.NumericCode -> 276
//countryInfo.Region -> Europe
//countryInfo.SubRegion -> WesternEurope
//countryInfo..