{"id":19976504,"url":"https://github.com/erossini/csharpcountrydata","last_synced_at":"2026-05-25T16:03:11.275Z","repository":{"id":245122591,"uuid":"816709723","full_name":"erossini/CSharpCountryData","owner":"erossini","description":"A simple cross platform offline .NET library for getting country data.","archived":false,"fork":false,"pushed_at":"2024-07-16T10:32:34.000Z","size":1459,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-22T21:51:26.537Z","etag":null,"topics":["countries","countries-api","country-codes","country-data","country-list","csharp"],"latest_commit_sha":null,"homepage":"https://puresourcecode.com/dotnet/net8/country-data-library-for-net8/","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/erossini.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":"FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"erossini"}},"created_at":"2024-06-18T08:58:35.000Z","updated_at":"2024-07-16T10:32:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"839990bc-03b0-472d-9051-eb51570a0aff","html_url":"https://github.com/erossini/CSharpCountryData","commit_stats":null,"previous_names":["erossini/csharpcountrydata"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erossini%2FCSharpCountryData","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erossini%2FCSharpCountryData/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erossini%2FCSharpCountryData/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erossini%2FCSharpCountryData/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/erossini","download_url":"https://codeload.github.com/erossini/CSharpCountryData/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241411547,"owners_count":19958753,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["countries","countries-api","country-codes","country-data","country-list","csharp"],"created_at":"2024-11-13T03:24:05.784Z","updated_at":"2026-05-25T16:03:06.248Z","avatar_url":"https://github.com/erossini.png","language":"C#","funding_links":["https://github.com/sponsors/erossini"],"categories":[],"sub_categories":[],"readme":"# Country Data library for NET8\n\n![countrydata_library](https://github.com/erossini/CSharpCountryData/assets/9497415/27b1d1ed-bc87-4d49-a7fd-89eaf1d0304b)\n\nA simple cross-platform offline .NET library for getting country data. The library is based on the ISO-3166-1 standard.\nBased on the operating system, using *Unicode*, you can display the flag of the country. On Windows, the _emoji_ displays the shortcode of the country, not the flag.\n\nThe library has the flags of the countries in SVG format. The flags can be displayed in two different types: `Square` and `Wide`.\n\n## Install Library\n\nTo install the library in your project, open the *Package Manager* and type the following command:\n\n```cSharp\nInstall-Package PSC.CSharp.Library.CountryData\n```\n\nAlso, you can use the .NET CLI to install the library. Type the following command:\n\n```cSharp\ndotnet add package PSC.CSharp.Library.CountryData\n```\n\n## Usage\n\nHere is an example how to use the library in your project.\n\n### Initialize the CountryData\n\n```cSharp\n// loads all Country Data via the constructor (You can initialize this once as a singleton)\nvar countryHelper = new CountryHelper();\n```\n\n### Get the list of countries \n\n```cSharp\nforeach (var country in countries) \n    Console.WriteLine(country);\n```\n\n### Get the list of regions in a country by country code\n\n```cSharp\nvar regions = countryHelper.GetRegionByCountryCode(\"IT\");\nforeach (var region in regions)\n    Console.WriteLine(region.Name);\n```\n\n### Using lambda for custom queries\n\n`GetCountryData()` returns an `IEnumerable\u003cCountry\u003e` which can be queried with Lambda for a more flexible usage.\n\n```cSharp\nvar data = countryHelper.GetCountryData();\n```\n\n### Get the list of countries by their Names\n\nThis code displays the name of the countries using a `foreach`.\n\n```cSharp\nvar countries = data.Select(c =\u003e c.CountryName).ToList();\nforeach (var country in countries)\n    Console.WriteLine(country);\n```\n\nHere the code to use `Linq` to filter the list.\n\n```cSharp\ndata.Where(x =\u003e x.CountryShortCode == \"US\")\n    .Select(r=\u003er.Regions).FirstOrDefault()\n    .ToList();\n```\n\n### Get the flag for a country\n\nIn the library, I added a method to get the flag of a country. The flags are in SVG format. The type of the flag can be `Square` or `Wide`.\n\n```cSharp\nvar flag = helper.GetFlagByCountryCode(\"GB\", FlagType.Square);\n```\n\n## List of supported ISO-3166-1 country codes\n\nHere is the list of supported ISO-3166-1 country codes, their code point pairs and `Emoji` flags. Based on the operating system, you see different _Emoji_.\nIn Windows, you see the short name of the country. In iOS and Android, the flag of the correspondent country is displayed.\n\n| ISO | Emoji | Unicode         | Name                                         |\n|-----|-------|-----------------|----------------------------------------------|\n| AD  | 🇦🇩  | U+1F1E6 U+1F1E9 | Andorra                                      |\n| AE  | 🇦🇪  | U+1F1E6 U+1F1EA | United Arab Emirates                         |\n| AF  | 🇦🇫  | U+1F1E6 U+1F1EB | Afghanistan                                  |\n| AG  | 🇦🇬  | U+1F1E6 U+1F1EC | Antigua and Barbuda                          |\n| AI  | 🇦🇮  | U+1F1E6 U+1F1EE | Anguilla                                     |\n| AL  | 🇦🇱  | U+1F1E6 U+1F1F1 | Albania                                      |\n| AM  | 🇦🇲  | U+1F1E6 U+1F1F2 | Armenia                                      |\n| AO  | 🇦🇴  | U+1F1E6 U+1F1F4 | Angola                                       |\n| AQ  | 🇦🇶  | U+1F1E6 U+1F1F6 | Antarctica                                   |\n| AR  | 🇦🇷  | U+1F1E6 U+1F1F7 | Argentina                                    |\n| AS  | 🇦🇸  | U+1F1E6 U+1F1F8 | American Samoa                               |\n| AT  | 🇦🇹  | U+1F1E6 U+1F1F9 | Austria                                      |\n| AU  | 🇦🇺  | U+1F1E6 U+1F1FA | Australia                                    |\n| AW  | 🇦🇼  | U+1F1E6 U+1F1FC | Aruba                                        |\n| AX  | 🇦🇽  | U+1F1E6 U+1F1FD | Åland Islands                                |\n| AZ  | 🇦🇿  | U+1F1E6 U+1F1FF | Azerbaijan                                   |\n| BA  | 🇧🇦  | U+1F1E7 U+1F1E6 | Bosnia and Herzegovina                       |\n| BB  | 🇧🇧  | U+1F1E7 U+1F1E7 | Barbados                                     |\n| BD  | 🇧🇩  | U+1F1E7 U+1F1E9 | Bangladesh                                   |\n| BE  | 🇧🇪  | U+1F1E7 U+1F1EA | Belgium                                      |\n| BF  | 🇧🇫  | U+1F1E7 U+1F1EB | Burkina Faso                                 |\n| BG  | 🇧🇬  | U+1F1E7 U+1F1EC | Bulgaria                                     |\n| BH  | 🇧🇭  | U+1F1E7 U+1F1ED | Bahrain                                      |\n| BI  | 🇧🇮  | U+1F1E7 U+1F1EE | Burundi                                      |\n| BJ  | 🇧🇯  | U+1F1E7 U+1F1EF | Benin                                        |\n| BL  | 🇧🇱  | U+1F1E7 U+1F1F1 | Saint Barthélemy                             |\n| BM  | 🇧🇲  | U+1F1E7 U+1F1F2 | Bermuda                                      |\n| BN  | 🇧🇳  | U+1F1E7 U+1F1F3 | Brunei Darussalam                            |\n| BO  | 🇧🇴  | U+1F1E7 U+1F1F4 | Bolivia                                      |\n| BQ  | 🇧🇶  | U+1F1E7 U+1F1F6 | Bonaire, Sint Eustatius and Saba             |\n| BR  | 🇧🇷  | U+1F1E7 U+1F1F7 | Brazil                                       |\n| BS  | 🇧🇸  | U+1F1E7 U+1F1F8 | Bahamas                                      |\n| BT  | 🇧🇹  | U+1F1E7 U+1F1F9 | Bhutan                                       |\n| BV  | 🇧🇻  | U+1F1E7 U+1F1FB | Bouvet Island                                |\n| BW  | 🇧🇼  | U+1F1E7 U+1F1FC | Botswana                                     |\n| BY  | 🇧🇾  | U+1F1E7 U+1F1FE | Belarus                                      |\n| BZ  | 🇧🇿  | U+1F1E7 U+1F1FF | Belize                                       |\n| CA  | 🇨🇦  | U+1F1E8 U+1F1E6 | Canada                                       |\n| CC  | 🇨🇨  | U+1F1E8 U+1F1E8 | Cocos (Keeling) Islands                      |\n| CD  | 🇨🇩  | U+1F1E8 U+1F1E9 | Congo                                        |\n| CF  | 🇨🇫  | U+1F1E8 U+1F1EB | Central African Republic                     |\n| CG  | 🇨🇬  | U+1F1E8 U+1F1EC | Congo                                        |\n| CH  | 🇨🇭  | U+1F1E8 U+1F1ED | Switzerland                                  |\n| CI  | 🇨🇮  | U+1F1E8 U+1F1EE | Côte D'Ivoire                                |\n| CK  | 🇨🇰  | U+1F1E8 U+1F1F0 | Cook Islands                                 |\n| CL  | 🇨🇱  | U+1F1E8 U+1F1F1 | Chile                                        |\n| CM  | 🇨🇲  | U+1F1E8 U+1F1F2 | Cameroon                                     |\n| CN  | 🇨🇳  | U+1F1E8 U+1F1F3 | China                                        |\n| CO  | 🇨🇴  | U+1F1E8 U+1F1F4 | Colombia                                     |\n| CR  | 🇨🇷  | U+1F1E8 U+1F1F7 | Costa Rica                                   |\n| CU  | 🇨🇺  | U+1F1E8 U+1F1FA | Cuba                                         |\n| CV  | 🇨🇻  | U+1F1E8 U+1F1FB | Cape Verde                                   |\n| CW  | 🇨🇼  | U+1F1E8 U+1F1FC | Curaçao                                      |\n| CX  | 🇨🇽  | U+1F1E8 U+1F1FD | Christmas Island                             |\n| CY  | 🇨🇾  | U+1F1E8 U+1F1FE | Cyprus                                       |\n| CZ  | 🇨🇿  | U+1F1E8 U+1F1FF | Czech Republic                               |\n| DE  | 🇩🇪  | U+1F1E9 U+1F1EA | Germany                                      |\n| DJ  | 🇩🇯  | U+1F1E9 U+1F1EF | Djibouti                                     |\n| DK  | 🇩🇰  | U+1F1E9 U+1F1F0 | Denmark                                      |\n| DM  | 🇩🇲  | U+1F1E9 U+1F1F2 | Dominica                                     |\n| DO  | 🇩🇴  | U+1F1E9 U+1F1F4 | Dominican Republic                           |\n| DZ  | 🇩🇿  | U+1F1E9 U+1F1FF | Algeria                                      |\n| EC  | 🇪🇨  | U+1F1EA U+1F1E8 | Ecuador                                      |\n| EE  | 🇪🇪  | U+1F1EA U+1F1EA | Estonia                                      |\n| EG  | 🇪🇬  | U+1F1EA U+1F1EC | Egypt                                        |\n| EH  | 🇪🇭  | U+1F1EA U+1F1ED | Western Sahara                               |\n| ER  | 🇪🇷  | U+1F1EA U+1F1F7 | Eritrea                                      |\n| ES  | 🇪🇸  | U+1F1EA U+1F1F8 | Spain                                        |\n| ET  | 🇪🇹  | U+1F1EA U+1F1F9 | Ethiopia                                     |\n| FI  | 🇫🇮  | U+1F1EB U+1F1EE | Finland                                      |\n| FJ  | 🇫🇯  | U+1F1EB U+1F1EF | Fiji                                         |\n| FK  | 🇫🇰  | U+1F1EB U+1F1F0 | Falkland Islands (Malvinas)                  |\n| FM  | 🇫🇲  | U+1F1EB U+1F1F2 | Micronesia                                   |\n| FO  | 🇫🇴  | U+1F1EB U+1F1F4 | Faroe Islands                                |\n| FR  | 🇫🇷  | U+1F1EB U+1F1F7 | France                                       |\n| GA  | 🇬🇦  | U+1F1EC U+1F1E6 | Gabon                                        |\n| GB  | 🇬🇧  | U+1F1EC U+1F1E7 | United Kingdom                               |\n| GD  | 🇬🇩  | U+1F1EC U+1F1E9 | Grenada                                      |\n| GE  | 🇬🇪  | U+1F1EC U+1F1EA | Georgia                                      |\n| GF  | 🇬🇫  | U+1F1EC U+1F1EB | French Guiana                                |\n| GG  | 🇬🇬  | U+1F1EC U+1F1EC | Guernsey                                     |\n| GH  | 🇬🇭  | U+1F1EC U+1F1ED | Ghana                                        |\n| GI  | 🇬🇮  | U+1F1EC U+1F1EE | Gibraltar                                    |\n| GL  | 🇬🇱  | U+1F1EC U+1F1F1 | Greenland                                    |\n| GM  | 🇬🇲  | U+1F1EC U+1F1F2 | Gambia                                       |\n| GN  | 🇬🇳  | U+1F1EC U+1F1F3 | Guinea                                       |\n| GP  | 🇬🇵  | U+1F1EC U+1F1F5 | Guadeloupe                                   |\n| GQ  | 🇬🇶  | U+1F1EC U+1F1F6 | Equatorial Guinea                            |\n| GR  | 🇬🇷  | U+1F1EC U+1F1F7 | Greece                                       |\n| GS  | 🇬🇸  | U+1F1EC U+1F1F8 | South Georgia                                |\n| GT  | 🇬🇹  | U+1F1EC U+1F1F9 | Guatemala                                    |\n| GU  | 🇬🇺  | U+1F1EC U+1F1FA | Guam                                         |\n| GW  | 🇬🇼  | U+1F1EC U+1F1FC | Guinea-Bissau                                |\n| GY  | 🇬🇾  | U+1F1EC U+1F1FE | Guyana                                       |\n| HK  | 🇭🇰  | U+1F1ED U+1F1F0 | Hong Kong                                    |\n| HM  | 🇭🇲  | U+1F1ED U+1F1F2 | Heard Island and Mcdonald Islands            |\n| HN  | 🇭🇳  | U+1F1ED U+1F1F3 | Honduras                                     |\n| HR  | 🇭🇷  | U+1F1ED U+1F1F7 | Croatia                                      |\n| HT  | 🇭🇹  | U+1F1ED U+1F1F9 | Haiti                                        |\n| HU  | 🇭🇺  | U+1F1ED U+1F1FA | Hungary                                      |\n| ID  | 🇮🇩  | U+1F1EE U+1F1E9 | Indonesia                                    |\n| IE  | 🇮🇪  | U+1F1EE U+1F1EA | Ireland                                      |\n| IL  | 🇮🇱  | U+1F1EE U+1F1F1 | Israel                                       |\n| IM  | 🇮🇲  | U+1F1EE U+1F1F2 | Isle of Man                                  |\n| IN  | 🇮🇳  | U+1F1EE U+1F1F3 | India                                        |\n| IO  | 🇮🇴  | U+1F1EE U+1F1F4 | British Indian Ocean Territory               |\n| IQ  | 🇮🇶  | U+1F1EE U+1F1F6 | Iraq                                         |\n| IR  | 🇮🇷  | U+1F1EE U+1F1F7 | Iran                                         |\n| IS  | 🇮🇸  | U+1F1EE U+1F1F8 | Iceland                                      |\n| IT  | 🇮🇹  | U+1F1EE U+1F1F9 | Italy                                        |\n| JE  | 🇯🇪  | U+1F1EF U+1F1EA | Jersey                                       |\n| JM  | 🇯🇲  | U+1F1EF U+1F1F2 | Jamaica                                      |\n| JO  | 🇯🇴  | U+1F1EF U+1F1F4 | Jordan                                       |\n| JP  | 🇯🇵  | U+1F1EF U+1F1F5 | Japan                                        |\n| KE  | 🇰🇪  | U+1F1F0 U+1F1EA | Kenya                                        |\n| KG  | 🇰🇬  | U+1F1F0 U+1F1EC | Kyrgyzstan                                   |\n| KH  | 🇰🇭  | U+1F1F0 U+1F1ED | Cambodia                                     |\n| KI  | 🇰🇮  | U+1F1F0 U+1F1EE | Kiribati                                     |\n| KM  | 🇰🇲  | U+1F1F0 U+1F1F2 | Comoros                                      |\n| KN  | 🇰🇳  | U+1F1F0 U+1F1F3 | Saint Kitts and Nevis                        |\n| KP  | 🇰🇵  | U+1F1F0 U+1F1F5 | North Korea                                  |\n| KR  | 🇰🇷  | U+1F1F0 U+1F1F7 | South Korea                                  |\n| KW  | 🇰🇼  | U+1F1F0 U+1F1FC | Kuwait                                       |\n| KY  | 🇰🇾  | U+1F1F0 U+1F1FE | Cayman Islands                               |\n| KZ  | 🇰🇿  | U+1F1F0 U+1F1FF | Kazakhstan                                   |\n| LA  | 🇱🇦  | U+1F1F1 U+1F1E6 | Lao People's Democratic Republic             |\n| LB  | 🇱🇧  | U+1F1F1 U+1F1E7 | Lebanon                                      |\n| LC  | 🇱🇨  | U+1F1F1 U+1F1E8 | Saint Lucia                                  |\n| LI  | 🇱🇮  | U+1F1F1 U+1F1EE | Liechtenstein                                |\n| LK  | 🇱🇰  | U+1F1F1 U+1F1F0 | Sri Lanka                                    |\n| LR  | 🇱🇷  | U+1F1F1 U+1F1F7 | Liberia                                      |\n| LS  | 🇱🇸  | U+1F1F1 U+1F1F8 | Lesotho                                      |\n| LT  | 🇱🇹  | U+1F1F1 U+1F1F9 | Lithuania                                    |\n| LU  | 🇱🇺  | U+1F1F1 U+1F1FA | Luxembourg                                   |\n| LV  | 🇱🇻  | U+1F1F1 U+1F1FB | Latvia                                       |\n| LY  | 🇱🇾  | U+1F1F1 U+1F1FE | Libya                                        |\n| MA  | 🇲🇦  | U+1F1F2 U+1F1E6 | Morocco                                      |\n| MC  | 🇲🇨  | U+1F1F2 U+1F1E8 | Monaco                                       |\n| MD  | 🇲🇩  | U+1F1F2 U+1F1E9 | Moldova                                      |\n| ME  | 🇲🇪  | U+1F1F2 U+1F1EA | Montenegro                                   |\n| MF  | 🇲🇫  | U+1F1F2 U+1F1EB | Saint Martin (French Part)                   |\n| MG  | 🇲🇬  | U+1F1F2 U+1F1EC | Madagascar                                   |\n| MH  | 🇲🇭  | U+1F1F2 U+1F1ED | Marshall Islands                             |\n| MK  | 🇲🇰  | U+1F1F2 U+1F1F0 | Macedonia                                    |\n| ML  | 🇲🇱  | U+1F1F2 U+1F1F1 | Mali                                         |\n| MM  | 🇲🇲  | U+1F1F2 U+1F1F2 | Myanmar                                      |\n| MN  | 🇲🇳  | U+1F1F2 U+1F1F3 | Mongolia                                     |\n| MO  | 🇲🇴  | U+1F1F2 U+1F1F4 | Macao                                        |\n| MP  | 🇲🇵  | U+1F1F2 U+1F1F5 | Northern Mariana Islands                     |\n| MQ  | 🇲🇶  | U+1F1F2 U+1F1F6 | Martinique                                   |\n| MR  | 🇲🇷  | U+1F1F2 U+1F1F7 | Mauritania                                   |\n| MS  | 🇲🇸  | U+1F1F2 U+1F1F8 | Montserrat                                   |\n| MT  | 🇲🇹  | U+1F1F2 U+1F1F9 | Malta                                        |\n| MU  | 🇲🇺  | U+1F1F2 U+1F1FA | Mauritius                                    |\n| MV  | 🇲🇻  | U+1F1F2 U+1F1FB | Maldives                                     |\n| MW  | 🇲🇼  | U+1F1F2 U+1F1FC | Malawi                                       |\n| MX  | 🇲🇽  | U+1F1F2 U+1F1FD | Mexico                                       |\n| MY  | 🇲🇾  | U+1F1F2 U+1F1FE | Malaysia                                     |\n| MZ  | 🇲🇿  | U+1F1F2 U+1F1FF | Mozambique                                   |\n| NA  | 🇳🇦  | U+1F1F3 U+1F1E6 | Namibia                                      |\n| NC  | 🇳🇨  | U+1F1F3 U+1F1E8 | New Caledonia                                |\n| NE  | 🇳🇪  | U+1F1F3 U+1F1EA | Niger                                        |\n| NF  | 🇳🇫  | U+1F1F3 U+1F1EB | Norfolk Island                               |\n| NG  | 🇳🇬  | U+1F1F3 U+1F1EC | Nigeria                                      |\n| NI  | 🇳🇮  | U+1F1F3 U+1F1EE | Nicaragua                                    |\n| NL  | 🇳🇱  | U+1F1F3 U+1F1F1 | Netherlands                                  |\n| NO  | 🇳🇴  | U+1F1F3 U+1F1F4 | Norway                                       |\n| NP  | 🇳🇵  | U+1F1F3 U+1F1F5 | Nepal                                        |\n| NR  | 🇳🇷  | U+1F1F3 U+1F1F7 | Nauru                                        |\n| NU  | 🇳🇺  | U+1F1F3 U+1F1FA | Niue                                         |\n| NZ  | 🇳🇿  | U+1F1F3 U+1F1FF | New Zealand                                  |\n| OM  | 🇴🇲  | U+1F1F4 U+1F1F2 | Oman                                         |\n| PA  | 🇵🇦  | U+1F1F5 U+1F1E6 | Panama                                       |\n| PE  | 🇵🇪  | U+1F1F5 U+1F1EA | Peru                                         |\n| PF  | 🇵🇫  | U+1F1F5 U+1F1EB | French Polynesia                             |\n| PG  | 🇵🇬  | U+1F1F5 U+1F1EC | Papua New Guinea                             |\n| PH  | 🇵🇭  | U+1F1F5 U+1F1ED | Philippines                                  |\n| PK  | 🇵🇰  | U+1F1F5 U+1F1F0 | Pakistan                                     |\n| PL  | 🇵🇱  | U+1F1F5 U+1F1F1 | Poland                                       |\n| PM  | 🇵🇲  | U+1F1F5 U+1F1F2 | Saint Pierre and Miquelon                    |\n| PN  | 🇵🇳  | U+1F1F5 U+1F1F3 | Pitcairn                                     |\n| PR  | 🇵🇷  | U+1F1F5 U+1F1F7 | Puerto Rico                                  |\n| PS  | 🇵🇸  | U+1F1F5 U+1F1F8 | Palestinian Territory                        |\n| PT  | 🇵🇹  | U+1F1F5 U+1F1F9 | Portugal                                     |\n| PW  | 🇵🇼  | U+1F1F5 U+1F1FC | Palau                                        |\n| PY  | 🇵🇾  | U+1F1F5 U+1F1FE | Paraguay                                     |\n| QA  | 🇶🇦  | U+1F1F6 U+1F1E6 | Qatar                                        |\n| RE  | 🇷🇪  | U+1F1F7 U+1F1EA | Réunion                                      |\n| RO  | 🇷🇴  | U+1F1F7 U+1F1F4 | Romania                                      |\n| RS  | 🇷🇸  | U+1F1F7 U+1F1F8 | Serbia                                       |\n| RU  | 🇷🇺  | U+1F1F7 U+1F1FA | Russia                                       |\n| RW  | 🇷🇼  | U+1F1F7 U+1F1FC | Rwanda                                       |\n| SA  | 🇸🇦  | U+1F1F8 U+1F1E6 | Saudi Arabia                                 |\n| SB  | 🇸🇧  | U+1F1F8 U+1F1E7 | Solomon Islands                              |\n| SC  | 🇸🇨  | U+1F1F8 U+1F1E8 | Seychelles                                   |\n| SD  | 🇸🇩  | U+1F1F8 U+1F1E9 | Sudan                                        |\n| SE  | 🇸🇪  | U+1F1F8 U+1F1EA | Sweden                                       |\n| SG  | 🇸🇬  | U+1F1F8 U+1F1EC | Singapore                                    |\n| SH  | 🇸🇭  | U+1F1F8 U+1F1ED | Saint Helena, Ascension and Tristan Da Cunha |\n| SI  | 🇸🇮  | U+1F1F8 U+1F1EE | Slovenia                                     |\n| SJ  | 🇸🇯  | U+1F1F8 U+1F1EF | Svalbard and Jan Mayen                       |\n| SK  | 🇸🇰  | U+1F1F8 U+1F1F0 | Slovakia                                     |\n| SL  | 🇸🇱  | U+1F1F8 U+1F1F1 | Sierra Leone                                 |\n| SM  | 🇸🇲  | U+1F1F8 U+1F1F2 | San Marino                                   |\n| SN  | 🇸🇳  | U+1F1F8 U+1F1F3 | Senegal                                      |\n| SO  | 🇸🇴  | U+1F1F8 U+1F1F4 | Somalia                                      |\n| SR  | 🇸🇷  | U+1F1F8 U+1F1F7 | Suriname                                     |\n| SS  | 🇸🇸  | U+1F1F8 U+1F1F8 | South Sudan                                  |\n| ST  | 🇸🇹  | U+1F1F8 U+1F1F9 | Sao Tome and Principe                        |\n| SV  | 🇸🇻  | U+1F1F8 U+1F1FB | El Salvador                                  |\n| SX  | 🇸🇽  | U+1F1F8 U+1F1FD | Sint Maarten (Dutch Part)                    |\n| SY  | 🇸🇾  | U+1F1F8 U+1F1FE | Syrian Arab Republic                         |\n| SZ  | 🇸🇿  | U+1F1F8 U+1F1FF | Swaziland                                    |\n| TC  | 🇹🇨  | U+1F1F9 U+1F1E8 | Turks and Caicos Islands                     |\n| TD  | 🇹🇩  | U+1F1F9 U+1F1E9 | Chad                                         |\n| TF  | 🇹🇫  | U+1F1F9 U+1F1EB | French Southern Territories                  |\n| TG  | 🇹🇬  | U+1F1F9 U+1F1EC | Togo                                         |\n| TH  | 🇹🇭  | U+1F1F9 U+1F1ED | Thailand                                     |\n| TJ  | 🇹🇯  | U+1F1F9 U+1F1EF | Tajikistan                                   |\n| TK  | 🇹🇰  | U+1F1F9 U+1F1F0 | Tokelau                                      |\n| TL  | 🇹🇱  | U+1F1F9 U+1F1F1 | Timor-Leste                                  |\n| TM  | 🇹🇲  | U+1F1F9 U+1F1F2 | Turkmenistan                                 |\n| TN  | 🇹🇳  | U+1F1F9 U+1F1F3 | Tunisia                                      |\n| TO  | 🇹🇴  | U+1F1F9 U+1F1F4 | Tonga                                        |\n| TR  | 🇹🇷  | U+1F1F9 U+1F1F7 | Turkey                                       |\n| TT  | 🇹🇹  | U+1F1F9 U+1F1F9 | Trinidad and Tobago                          |\n| TV  | 🇹🇻  | U+1F1F9 U+1F1FB | Tuvalu                                       |\n| TW  | 🇹🇼  | U+1F1F9 U+1F1FC | Taiwan                                       |\n| TZ  | 🇹🇿  | U+1F1F9 U+1F1FF | Tanzania                                     |\n| UA  | 🇺🇦  | U+1F1FA U+1F1E6 | Ukraine                                      |\n| UG  | 🇺🇬  | U+1F1FA U+1F1EC | Uganda                                       |\n| UM  | 🇺🇲  | U+1F1FA U+1F1F2 | United States Minor Outlying Islands         |\n| US  | 🇺🇸  | U+1F1FA U+1F1F8 | United States                                |\n| UY  | 🇺🇾  | U+1F1FA U+1F1FE | Uruguay                                      |\n| UZ  | 🇺🇿  | U+1F1FA U+1F1FF | Uzbekistan                                   |\n| VA  | 🇻🇦  | U+1F1FB U+1F1E6 | Vatican City                                 |\n| VC  | 🇻🇨  | U+1F1FB U+1F1E8 | Saint Vincent and The Grenadines             |\n| VE  | 🇻🇪  | U+1F1FB U+1F1EA | Venezuela                                    |\n| VG  | 🇻🇬  | U+1F1FB U+1F1EC | Virgin Islands, British                      |\n| VI  | 🇻🇮  | U+1F1FB U+1F1EE | Virgin Islands, U.S.                         |\n| VN  | 🇻🇳  | U+1F1FB U+1F1F3 | Viet Nam                                     |\n| VU  | 🇻🇺  | U+1F1FB U+1F1FA | Vanuatu                                      |\n| WF  | 🇼🇫  | U+1F1FC U+1F1EB | Wallis and Futuna                            |\n| WS  | 🇼🇸  | U+1F1FC U+1F1F8 | Samoa                                        |\n| YE  | 🇾🇪  | U+1F1FE U+1F1EA | Yemen                                        |\n| YT  | 🇾🇹  | U+1F1FE U+1F1F9 | Mayotte                                      |\n| ZA  | 🇿🇦  | U+1F1FF U+1F1E6 | South Africa                                 |\n| ZM  | 🇿🇲  | U+1F1FF U+1F1F2 | Zambia                                       |\n| ZW  | 🇿🇼  | U+1F1FF U+1F1FC | Zimbabwe                                     |\n\n## Functions\n\n| Function               | Return               | Description                                                 |\n|------------------------|----------------------|-------------------------------------------------------------|\n| GetCountries()         | IEnumerable\u003cstring\u003e  | Gets the list of all countries in the world                 |\n| GetCountryByCode       | Country              | Returns a single Country Data by ShortCode                  |\n| GetCountryData()       | IEnumerable\u003cCountry\u003e | Gets the list of all countries in the world with their data |\n| GetCountryEmojiFlag    | string               | Returns the Emoji Flag of a country by ShortCode            |\n| GetRegionByCountryCode | List\u003cRegions\u003e        | Returns the Regions of a country by ShortCode               |\n| GetJsonData            | string               | Returns the JSON Data of all countries in the world         |\n\n### Flags\n\n| Function               | Return               | Description                                                 |\n|------------------------|----------------------|-------------------------------------------------------------|\n| GetFlagByCountryCode   | string               | Returns the Flag of a country by ShortCode                  |\n| GetFlagData            | FlagModel            | Return the `FlagModel` of one country by ShortCode          |\n| GetNameByCountryCode   | string               | Returns the Name of a country by ShortCode                  |\n\n### Get a full SVG\n\nThe `GetFlagByCountryCode` returns only the content of the SVG file. What it doesn't have is the `XML` declaration and the `DOCTYPE` declaration. \nIf you want to get the full SVG file, you can use the `GetFullSVG` function in the `SVGFlags` static class.\n\n```csharp\nvar svgFlag = SVGFlags.GetFullSVG(SVGFlags.lgbt_1, \"300\", \"300\");\n```\n\n---\n    \n## PureSourceCode.com\n\n[PureSourceCode.com](https://www.puresourcecode.com/) is my personal blog where I publish posts about technologies and in particular source code and projects in [.NET](https://www.puresourcecode.com/category/dotnet/). \n\nIn the last few months, I created a lot of components for [Blazor WebAssembly](https://www.puresourcecode.com/tag/blazor-webassembly/) and [Blazor Server](https://www.puresourcecode.com/tag/blazor-server/).\n\nMy name is Enrico Rossini and you can contact me via:\n- [Personal Twitter](https://twitter.com/erossiniuk)\n- [LinkedIn](https://www.linkedin.com/in/rossiniuk)\n- [Facebook](https://www.facebook.com/puresourcecode)\n\n## Blazor Components\n\n| Component name | Forum | NuGet | Website | Description |\n|---|---|---|---|---|\n| [AnchorLink]() | [Forum](https://puresourcecode.com/forum/anchorlink/) | ![NuGet badge](https://img.shields.io/nuget/v/PSC.Blazor.Components.AnchorLink) | | An anchor link is a web link that allows users to leapfrog to a specific point on a website page. It saves them the need to scroll and skim read and makes navigation easier. This component is for [Blazor WebAssembly](https://www.puresourcecode.com/tag/blazor-webassembly/) and [Blazor Server](https://www.puresourcecode.com/tag/blazor-server/) |\n| [Autocomplete for Blazor](https://www.puresourcecode.com/dotnet/net-core/autocomplete-component-for-blazor/) | [Forum](https://www.puresourcecode.com/forum/autocomplete-blazor/) | ![NuGet badge](https://img.shields.io/nuget/v/PSC.Blazor.Components.Autocomplete) | | Simple and flexible autocomplete type-ahead functionality for [Blazor WebAssembly](https://www.puresourcecode.com/tag/blazor-webassembly/) and [Blazor Server](https://www.puresourcecode.com/tag/blazor-server/) |\n| [Browser Detect for Blazor](https://www.puresourcecode.com/dotnet/blazor/browser-detect-component-for-blazor/) | [Forum](https://www.puresourcecode.com/forum/browser-detect-for-blazor/) | ![NuGet badge](https://img.shields.io/nuget/v/PSC.Blazor.Components.BrowserDetect) | [Demo](https://browserdetect.puresourcecode.com) | Browser detect for Blazor WebAssembly and Blazor Server |\n| [ChartJs for Blazor](https://www.puresourcecode.com/dotnet/blazor/blazor-component-for-chartjs/) | [Forum](https://www.puresourcecode.com/forum/chart-js-for-blazor/) | ![NuGet badge](https://img.shields.io/nuget/v/PSC.Blazor.Components.Chartjs) | [Demo](https://chartjs.puresourcecode.com/) | Add beautiful graphs based on ChartJs in your Blazor application |\n| [Clippy for Blazor](https://www.puresourcecode.com/dotnet/blazor/blazor-component-for-chartjs/) | [Forum](https://www.puresourcecode.com/forum/clippy/) | ![NuGet badge](https://img.shields.io/nuget/v/PSC.Blazor.Components.Clippy) | [Demo](https://clippy.puresourcecode.com/) | Do you miss Clippy? Here the implementation for Blazor |\n| [CodeSnipper for Blazor](https://www.puresourcecode.com/dotnet/blazor/code-snippet-component-for-blazor/) | [Forum](https://www.puresourcecode.com/forum/codesnippet-for-blazor/) | ![NuGet badge](https://img.shields.io/nuget/v/PSC.Blazor.Components.CodeSnippet) | | Add code snippet in your Blazor pages for 196 programming languages with 243 styles |\n| [Copy To Clipboard](https://www.puresourcecode.com/dotnet/blazor/copy-to-clipboard-component-for-blazor/) | [Forum](https://www.puresourcecode.com/forum/copytoclipboard/) | ![NuGet badge](https://img.shields.io/nuget/v/PSC.Blazor.Components.CopyToClipboard) | | Add a button to copy text in the clipboard | \n| [DataTable for Blazor](https://www.puresourcecode.com/dotnet/net-core/datatable-component-for-blazor/) | [Forum](https://www.puresourcecode.com/forum/forum/datatables/) | ![NuGet badge](https://img.shields.io/nuget/v/PSC.Blazor.Components.DataTable) | [Demo](https://datatable.puresourcecode.com/) | DataTable component for Blazor WebAssembly and Blazor Server |\n| [Google Tag Manager]() | [Forum]() | ![NuGet badge](https://img.shields.io/nuget/v/PSC.Blazor.Components.GoogleTagManager) | [Demo](https://datatable.puresourcecode.com/) | Adds Google Tag Manager to the application and manages communication with GTM JavaScript (data layer). |\n| [Icons and flags for Blazor](https://www.puresourcecode.com/forum/icons-and-flags-for-blazor/) | [Forum](https://www.puresourcecode.com/forum/icons-and-flags-for-blazor/) | ![NuGet badge](https://img.shields.io/nuget/v/PSC.Blazor.Components.Icons) | | Library with a lot of SVG icons and SVG flags to use in your Razor pages |\n| [ImageSelect for Blazor]() | [Forum](https://puresourcecode.com/forum/imageselect/) | ![NuGet badge](https://img.shields.io/nuget/v/PSC.Blazor.Components.ImageSelect) | | This is a Blazor component to display a dropdown list with images based on ms-Dropdown by Marghoob Suleman. This component is built with NET7 for [Blazor WebAssembly](https://www.puresourcecode.com/tag/blazor-webassembly/) and [Blazor Server](https://www.puresourcecode.com/tag/blazor-server/) |\n| [Markdown editor for Blazor](https://www.puresourcecode.com/dotnet/blazor/markdown-editor-with-blazor/) | [Forum](https://www.puresourcecode.com/forum/forum/markdown-editor-for-blazor/) | ![NuGet badge](https://img.shields.io/nuget/v/PSC.Blazor.Components.MarkdownEditor) | [Demo](https://markdown.puresourcecode.com/) | This is a Markdown Editor for use in Blazor. It contains a live preview as well as an embeded help guide for users. |\n| [Modal dialog for Blazor](https://www.puresourcecode.com/dotnet/blazor/modal-dialog-component-for-blazor/) | [Forum](https://www.puresourcecode.com/forum/forum/modal-dialog-for-blazor/) | ![NuGet badge](https://img.shields.io/nuget/v/PSC.Blazor.Components.ModalDialog) | | Simple Modal Dialog for Blazor WebAssembly |\n| [Modal windows for Blazor](https://www.puresourcecode.com/dotnet/blazor/modal-dialog-component-for-blazor/) | [Forum](https://www.puresourcecode.com/forum/forum/modal-dialog-for-blazor/) | ![NuGet badge](https://img.shields.io/nuget/v/PSC.Blazor.Components.Modals) | | Modal Windows for Blazor WebAssembly |\n| [Quill for Blazor](https://www.puresourcecode.com/dotnet/blazor/create-a-blazor-component-for-quill/) | [Forum](https://www.puresourcecode.com/forum/forum/quill-for-blazor/) | ![NuGet badge](https://img.shields.io/nuget/v/PSC.Blazor.Components.Quill) | | Quill Component is a custom reusable control that allows us to easily consume Quill and place multiple instances of it on a single page in our Blazor application |\n| [ScrollTabs](https://www.puresourcecode.com/dotnet/blazor/scrolltabs-component-for-blazor/) | | ![NuGet badge](https://img.shields.io/nuget/v/PSC.Blazor.Components.ScrollTabs) | | Tabs with nice scroll (no scrollbar) and responsive |\n| [Segment for Blazor](https://www.puresourcecode.com/dotnet/blazor/segment-control-for-blazor/) | [Forum](https://www.puresourcecode.com/forum/forum/segments-for-blazor/) | ![NuGet badge](https://img.shields.io/nuget/v/PSC.Blazor.Components.Segments) | | This is a Segment component for Blazor Web Assembly and Blazor Server |\n| [Tabs for Blazor](https://www.puresourcecode.com/dotnet/blazor/tabs-control-for-blazor/) | [Forum](https://www.puresourcecode.com/forum/forum/tabs-for-blazor/) | ![NuGet badge](https://img.shields.io/nuget/v/PSC.Blazor.Components.Tabs) | | This is a Tabs component for Blazor Web Assembly and Blazor Server |\n| [Timeline for Blazor](https://www.puresourcecode.com/dotnet/blazor/timeline-component-for-blazor/) | [Forum](https://www.puresourcecode.com/forum/timeline/) | ![NuGet badge](https://img.shields.io/nuget/v/PSC.Blazor.Components.Timeline) | | This is a new responsive timeline  for Blazor Web Assembly and Blazor Server |\n| [Toast for Blazor](https://www.puresourcecode.com/forum/psc-components-and-source-code/) | [Forum](https://www.puresourcecode.com/forum/psc-components-and-source-code/) | ![NuGet badge](https://img.shields.io/nuget/v/PSC.Blazor.Components.Toast) | | Toast notification for Blazor applications |\n| [Tours for Blazor](https://www.puresourcecode.com/forum/psc-components-and-source-code/) | [Forum](https://www.puresourcecode.com/forum/psc-components-and-source-code/) | ![NuGet badge](https://img.shields.io/nuget/v/PSC.Blazor.Components.Tours) | | Guide your users in your Blazor applications |\n| [TreeView for Blazor]() | [Forum](https://puresourcecode.com/forum/treeview/) | ![NuGet badge](https://img.shields.io/nuget/v/PSC.Blazor.Components.TreeView) | | This component is a native Blazor TreeView component for [Blazor WebAssembly](https://www.puresourcecode.com/tag/blazor-webassembly/) and [Blazor Server](https://www.puresourcecode.com/tag/blazor-server/). The component is built with .NET7. |\n| [WorldMap for Blazor](https://puresourcecode.com/dotnet/blazor/world-map-component-for-blazor) | [Forum](https://www.puresourcecode.com/forum/worldmap-for-blazor/) | ![NuGet badge](https://img.shields.io/nuget/v/PSC.Blazor.Components.WorldMap) | [Demo](https://worldmap.puresourcecode.com/) | Show world maps with your data |\n\n## C# libraries for .NET6\n\n| Component name | Forum | NuGet | Description |\n|---|---|---|---|\n| [PSC.Evaluator](https://www.puresourcecode.com/forum/psc-components-and-source-code/) | [Forum](https://www.puresourcecode.com/forum/forum/psc-extensions/) | ![NuGet badge](https://img.shields.io/nuget/v/PSC.Evaluator) | PSC.Evaluator is a mathematical expressions evaluator library written in C#. Allows to evaluate mathematical, boolean, string and datetime expressions. |\n| [PSC.Extensions](https://www.puresourcecode.com/dotnet/net-core/a-lot-of-functions-for-net5/) | [Forum](https://www.puresourcecode.com/forum/forum/psc-extensions/) | ![NuGet badge](https://img.shields.io/nuget/v/PSC.Extensions) | A lot of functions for .NET5 in a NuGet package that you can download for free. We collected in this package functions for everyday work to help you with claim, strings, enums, date and time, expressions... |\n\n## C# libraries for .NET8\n| Component name | Forum | NuGet | Description |\n|---|---|---|---|\n| [PSC.CSharp.Library.CountryData](https://puresourcecode.com/dotnet/net8/country-data-library-for-net8/) | | ![NuGet badge](https://img.shields.io/nuget/v/PSC.CSharp.Library.CountryData) | A simple cross platform offline .NET library for getting country data. |\n| PSC.CSharp.Library.LanguageData | | ![NuGet badge](https://img.shields.io/nuget/v/PSC.CSharp.Library.LanguageData) | This library is a comprehensive language code information, consisting of ISO 639-1, ISO 639-2 and IETF language types for C#. |\n\n## More examples and documentation\n\n### Blazor\n*   [Write a reusable Blazor component](https://www.puresourcecode.com/dotnet/blazor/write-a-reusable-blazor-component/)\n*   [Getting Started With C# And Blazor](https://www.puresourcecode.com/dotnet/net-core/getting-started-with-c-and-blazor/)\n*   [Setting Up A Blazor WebAssembly Application](https://www.puresourcecode.com/dotnet/blazor/setting-up-a-blazor-webassembly-application/)\n*   [Working With Blazor Component Model](https://www.puresourcecode.com/dotnet/blazor/working-with-blazors-component-model/)\n*   [Secure Blazor WebAssembly With IdentityServer4](https://www.puresourcecode.com/dotnet/blazor/secure-blazor-webassembly-with-identityserver4/)\n*   [Blazor Using HttpClient With Authentication](https://www.puresourcecode.com/dotnet/blazor/blazor-using-httpclient-with-authentication/)\n*   [InputSelect component for enumerations in Blazor](https://www.puresourcecode.com/dotnet/blazor/inputselect-component-for-enumerations-in-blazor/)\n*   [Use LocalStorage with Blazor WebAssembly](https://www.puresourcecode.com/dotnet/blazor/use-localstorage-with-blazor-webassembly/)\n*   [Modal Dialog component for Blazor](https://www.puresourcecode.com/dotnet/blazor/modal-dialog-component-for-blazor/)\n*   [Create Tooltip component for Blazor](https://www.puresourcecode.com/dotnet/blazor/create-tooltip-component-for-blazor/)\n*   [Consume ASP.NET Core Razor components from Razor class libraries | Microsoft Docs](https://docs.microsoft.com/en-us/aspnet/core/blazor/components/class-libraries?view=aspnetcore-5.0\u0026tabs=visual-studio)\n*   [ChartJs component for Blazor](https://www.puresourcecode.com/dotnet/blazor/blazor-component-for-chartjs/)\n*   [Labels and OnClickChart for ChartJs](https://www.puresourcecode.com/dotnet/blazor/labels-and-onclickchart-for-chartjs/)\n\n### Blazor \u0026 NET8\n* [Custom User Management with NET8 and Blazor (1st part)](https://puresourcecode.com/dotnet/blazor/custom-user-management-with-net8-and-blazor/)\n* [NET8, Blazor and Custom User Management (2nd part)](https://puresourcecode.com/dotnet/blazor/net8-blazor-and-custom-user-management/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferossini%2Fcsharpcountrydata","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferossini%2Fcsharpcountrydata","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferossini%2Fcsharpcountrydata/lists"}