-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
56 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
|
||
████████ ██ ██ █████ ███ ██ ██ ██ ██ ██ ██████ ██ ██ | ||
██ ██ ██ ██ ██ ████ ██ ██ ██ ██ ██ ██ ██ ██ ██ | ||
██ ███████ ███████ ██ ██ ██ █████ ████ ██ ██ ██ ██ | ||
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ | ||
██ ██ ██ ██ ██ ██ ████ ██ ██ ██ ██████ ██████ | ||
|
||
|
||
Thank you for using this project. This project is completely free for commercial use. | ||
|
||
However, if you use our project commercially we would like you to support us with a sponsorship. | ||
The maintenance and support costs time and we would like to ensure this for the future with your help. | ||
You can easily support us via the Github Sponsor function. https://github.com/sponsors/nager | ||
|
||
We would also be very happy about a GitHub Star ★ | ||
|
||
Project Source: https://github.com/nager/Nager.Country | ||
|
||
|
||
|
||
Examples of use: | ||
|
||
Get CountryInfo for 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 for 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.. |