If you want to include ISO3166 in your project, you can install it directly from NuGet
To install ISO3166, run the following command in the Package Manager Console
PM> Install-Package ISO3166
Country[] countries = ISO3166.Country.List;
public string Name { get; private set; }
public string TwoLetterCode { get; private set; }
public string ThreeLetterCode { get; private set; }
public string NumericCode { get; private set; }
public static readonly Country[] List = new[] {...};
Last check against the official ISO 3166 as on https://www.iso.org/obp/ui/#search: 8th January 2020
License: MIT