Firell.Standards.ISO3166
2.0.0
Prefix Reserved
dotnet add package Firell.Standards.ISO3166 --version 2.0.0
NuGet\Install-Package Firell.Standards.ISO3166 -Version 2.0.0
<PackageReference Include="Firell.Standards.ISO3166" Version="2.0.0" />
<PackageVersion Include="Firell.Standards.ISO3166" Version="2.0.0" />
<PackageReference Include="Firell.Standards.ISO3166" />
paket add Firell.Standards.ISO3166 --version 2.0.0
#r "nuget: Firell.Standards.ISO3166, 2.0.0"
#:package Firell.Standards.ISO3166@2.0.0
#addin nuget:?package=Firell.Standards.ISO3166&version=2.0.0
#tool nuget:?package=Firell.Standards.ISO3166&version=2.0.0
ISO 3166
This package includes international standard country codes, along with related information that may be useful in different contexts.
Features
- Country codes (numeric, alpha-2, alpha-3)
- Common, official and native country names
- Regions and capital cities
- Spoken languages and active currencies
- International dialing codes
Usage
Get countries & regions
Access the list of countries or regions using predefined properties in the ISO3166 class, or filter countries by region.
var countries = ISO3166.Countries;
var regions = ISO3166.Regions;
var europe = ISO3166.GetCountriesByRegion(Region.Europe);
var northernEurope = ISO3166.GetCountriesBySubregion(Subregion.NorthernEurope);
Alternatively, you can get specific countries using their predefined country property or their international codes:
var canada = CountryInfo.Canada;
var germany = ISO3166.GetCountryByCode("276");
var denmark = ISO3166.GetCountryByCode("DK");
var unitedStates = ISO3166.GetCountryByCode("USA");
Models
public record CountryInfo
{
public string CommonName { get; init; }
public string CommonNativeName { get; init; }
public string OfficialName { get; init; }
public string OfficialNativeName { get; init; }
public string NumericCode { get; init; }
public string TwoLetterCode { get; init; }
public string ThreeLetterCode { get; init; }
public string Region { get; init; }
public string Subregion { get; init; }
public string Capital { get; init; }
public Dictionary<string, string> Languages { get; init; }
public Dictionary<string, string> Currencies { get; init; }
public string DialingCode { get; init; }
}
Each model includes a custom string representation for easy printing and debugging:
Common Name: Denmark
Common Native Name: Danmark
Official Name: Kingdom of Denmark
Official Native Name: Kongeriget Danmark
Numeric Code: 208
Two Letter Code: DK
Three Letter Code: DNK
Region: Europe
Subregion: Northern Europe
Capital: Copenhagen
Languages: Danish (DAN)
Currencies: Danish krone (DKK)
Dialing Code: +45
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- No dependencies.
-
net8.0
- No dependencies.
-
net9.0
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Firell.Standards.ISO3166:
| Package | Downloads |
|---|---|
|
Firell.Standards
Meta-package that combines the multiple Firell Standards libraries into one package for convenience. |
GitHub repositories
This package is not used by any popular GitHub repositories.