Nager.Country 3.0.3 Prefix Reserved

There is a newer version of this package available.
See the version list below for details.
Install-Package Nager.Country -Version 3.0.3
dotnet add package Nager.Country --version 3.0.3
<PackageReference Include="Nager.Country" Version="3.0.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Nager.Country --version 3.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Nager.Country, 3.0.3"
#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.0.3

// Install Nager.Country as a Cake Tool
#tool nuget:?package=Nager.Country&version=3.0.3
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

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
3.1.1 11,322 9/30/2021
3.1.0 13,059 7/20/2021
3.0.3 2,119 7/14/2021
3.0.1 44,628 1/27/2021
3.0.0 428 1/26/2021
2.0.0 4,697 12/29/2020
1.0.10 9,848 12/13/2020
1.0.9 171 12/9/2020
1.0.8 214 12/3/2020
1.0.4 52,911 6/25/2019
1.0.3 2,238 2/10/2019
1.0.2 377 1/31/2019
1.0.1 369 1/30/2019
1.0.0 383 1/29/2019

Add Readme.md to nuget file