readme.txt 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. ████████ ██ ██ █████ ███ ██ ██ ██ ██ ██ ██████ ██ ██
  2. ██ ██ ██ ██ ██ ████ ██ ██ ██ ██ ██ ██ ██ ██ ██
  3. ██ ███████ ███████ ██ ██ ██ █████ ████ ██ ██ ██ ██
  4. ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
  5. ██ ██ ██ ██ ██ ██ ████ ██ ██ ██ ██████ ██████
  6. Thank you for using this project. This project is completely free for commercial use.
  7. However, if you use our project commercially we would like you to support us with a sponsorship.
  8. The maintenance and support costs time and we would like to ensure this for the future with your help.
  9. You can easily support us via the Github Sponsor function. https://github.com/sponsors/nager
  10. We would also be very happy about a GitHub Star ★
  11. Project Source: https://github.com/nager/Nager.Country
  12. Examples of use:
  13. Get CountryInfo for Germany via Alpha2Code
  14. ══════════════════════════════════════════════════════════════════════════════════════════════════════
  15. ICountryProvider countryProvider = new CountryProvider();
  16. var countryInfo = countryProvider.GetCountry(Alpha2Code.DE);
  17. //countryInfo.CommonName -> Germany
  18. //countryInfo.Alpha3Code -> DEU
  19. //countryInfo.NumericCode -> 276
  20. //countryInfo.Region -> Europe
  21. //countryInfo.SubRegion -> WesternEurope
  22. //countryInfo...
  23. Get CountryInfo for Germany via CommonName
  24. ══════════════════════════════════════════════════════════════════════════════════════════════════════
  25. ICountryProvider countryProvider = new CountryProvider();
  26. var countryInfo = countryProvider.GetCountryByName("Germany");
  27. //countryInfo.Alpha2Code -> DE
  28. //countryInfo.Alpha3Code -> DEU
  29. //countryInfo.NumericCode -> 276
  30. //countryInfo.Region -> Europe
  31. //countryInfo.SubRegion -> WesternEurope
  32. //countryInfo..