liuaoran 35e0add9b2 compdfkit(win) 1 år sedan
..
lib 35e0add9b2 compdfkit(win) 1 år sedan
.signature.p7s 35e0add9b2 compdfkit(win) 1 år sedan
LICENSE.md 35e0add9b2 compdfkit(win) 1 år sedan
Nager.Country.4.0.0.nupkg 35e0add9b2 compdfkit(win) 1 år sedan
README.md 35e0add9b2 compdfkit(win) 1 år sedan
icon.png 35e0add9b2 compdfkit(win) 1 år sedan
readme.txt 35e0add9b2 compdfkit(win) 1 år sedan

README.md

Nager.Country

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

Code Examples

Get CountryInfo - Germany via Alpha2Code

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...

Get CountryInfo - Germany via CommonName

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..