You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Worldwirde Country Informations are available over the nuget package. The collection contains the Informations for 250 Countries.
4
+
5
+
> If you need the translations of the countries you will find in the further nuget package [Nager.Country.Translation](https://www.nuget.org/packages/Nager.Country.Translation)
6
+
7
+
## Code Examples
8
+
9
+
### Get CountryInfo - Germany via Alpha2Code
10
+
11
+
ICountryProvider countryProvider = new CountryProvider();
12
+
var countryInfo = countryProvider.GetCountry(Alpha2Code.DE);
13
+
//countryInfo.CommonName -> Germany
14
+
//countryInfo.Alpha3Code -> DEU
15
+
//countryInfo.NumericCode -> 276
16
+
//countryInfo.Region -> Europe
17
+
//countryInfo.SubRegion -> WesternEurope
18
+
//countryInfo...
19
+
20
+
### Get CountryInfo - Germany via CommonName
21
+
22
+
ICountryProvider countryProvider = new CountryProvider();
23
+
var countryInfo = countryProvider.GetCountryByName("Germany");
0 commit comments