.NET library to get country data and flags, incl. time zones, capitals, names, geo data, etc...
$ dotnet add package DBN.CountryInfo.NET library to load country data, incl. flag images (.png/.svg).
Documentation is available on GitHub.
Add dependency to DBN.CountryInfo to your project and import namespace.
var countries = CountryInfoProvider.Instance.GetCountries();
var japan = CountryInfoProvider.Instance.GetCountry("japan");
var italy = CountryInfoProvider.Instance.GetCountry("italia");
var austria = CountryInfoProvider.Instance.GetCountry("at");
var denmark = CountryInfoProvider.Instance.GetCountry("dnk");
var china = CountryInfoProvider.Instance.GetCountryFlag("china")
var sweden = CountryInfoProvider.Instance.GetCountryFlag("se", CountryFlagFormat.Svg)
The MIT License (MIT) see License file