Nager.Country 3.1.1 Prefix Reserved

Install-Package Nager.Country -Version 3.1.1
dotnet add package Nager.Country --version 3.1.1
<PackageReference Include="Nager.Country" Version="3.1.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Nager.Country --version 3.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Nager.Country, 3.1.1"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Nager.Country as a Cake Addin
#addin nuget:?package=Nager.Country&version=3.1.1

// Install Nager.Country as a Cake Tool
#tool nuget:?package=Nager.Country&version=3.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

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..
  • .NETFramework 4.6.1

    • No dependencies.
  • .NETStandard 2.0

    • No dependencies.
  • .NETStandard 2.1

    • No dependencies.
  • net5.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Nager.Country:

Package Downloads
Nager.Country.Translation

Get country translations and language translations for Nager.Country

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on Nager.Country:

Repository Stars
nager/Nager.Date
:earth_americas: Worldwide public holiday
Version Downloads Last updated
3.1.1 5,316 9/30/2021
3.1.0 9,814 7/20/2021
3.0.3 1,799 7/14/2021
3.0.1 37,945 1/27/2021
3.0.0 390 1/26/2021
2.0.0 4,200 12/29/2020
1.0.10 9,491 12/13/2020
1.0.9 165 12/9/2020
1.0.8 190 12/3/2020
1.0.4 48,099 6/25/2019
1.0.3 2,223 2/10/2019
1.0.2 363 1/31/2019
1.0.1 364 1/30/2019
1.0.0 375 1/29/2019

Add NativeName, change Macedonia to North Macedonia