< Summary

Information
Class: MyNet.Geography.Country
Assembly: MyNet.Geography
File(s): https://raw.githubusercontent.com/sandre58/MyNet/85372080fe102cd9ee155ceab49ae000e7f66103/src/MyNet.Geography/Country.cs
Tag: 323_28699572109
Line coverage
100%
Covered lines: 251
Uncovered lines: 0
Coverable lines: 251
Total lines: 308
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.cctor()100%11100%
.ctor(...)100%11100%

File(s)

https://raw.githubusercontent.com/sandre58/MyNet/85372080fe102cd9ee155ceab49ae000e7f66103/src/MyNet.Geography/Country.cs

#LineLine coverage
 1// -----------------------------------------------------------------------
 2// <copyright file="Country.cs" company="Stéphane ANDRE">
 3// Copyright (c) Stéphane ANDRE. All rights reserved.
 4// </copyright>
 5// -----------------------------------------------------------------------
 6
 7using System.Diagnostics.CodeAnalysis;
 8using MyNet.Primitives;
 9
 10namespace MyNet.Geography;
 11
 12/// <summary>
 13/// Represents a country using standardized ISO 3166 codes and associated continent information.
 14/// </summary>
 15/// <remarks>The Country class provides a strongly-typed representation of countries, including their ISO 3166
 16/// numeric, alpha-2, and alpha-3 codes, as well as the continent to which each country belongs. This enables consistent
 17/// handling of country data across applications, particularly when interoperating with external systems or data formats
 18/// that require standardized country identifiers.</remarks>
 19public sealed class Country : SmartEnum<Country, string>
 20{
 1021    public static readonly Country Afghanistan = new(4, nameof(Afghanistan), "af", "afg", Continent.Asia);
 1022    public static readonly Country Albania = new(8, nameof(Albania), "al", "alb", Continent.Europe);
 1023    public static readonly Country Antarctica = new(10, nameof(Antarctica), "aq", "ata", Continent.Antarctica);
 1024    public static readonly Country Algeria = new(12, nameof(Algeria), "dz", "dza", Continent.Africa);
 1025    public static readonly Country AmericanSamoa = new(16, nameof(AmericanSamoa), "as", "asm", Continent.Oceania);
 1026    public static readonly Country Andorra = new(20, nameof(Andorra), "ad", "and", Continent.Europe);
 1027    public static readonly Country Angola = new(24, nameof(Angola), "ao", "ago", Continent.Africa);
 1028    public static readonly Country AntiguaAndBarbuda = new(28, nameof(AntiguaAndBarbuda), "ag", "atg", Continent.NorthAm
 1029    public static readonly Country Azerbaijan = new(31, nameof(Azerbaijan), "az", "aze", Continent.Asia);
 1030    public static readonly Country Argentina = new(32, nameof(Argentina), "ar", "arg", Continent.SouthAmerica);
 1031    public static readonly Country Australia = new(36, nameof(Australia), "au", "aus", Continent.Oceania);
 1032    public static readonly Country Austria = new(40, nameof(Austria), "at", "aut", Continent.Europe);
 1033    public static readonly Country Bahamas = new(44, nameof(Bahamas), "bs", "bhs", Continent.NorthAmerica);
 1034    public static readonly Country Bahrain = new(48, nameof(Bahrain), "bh", "bhr", Continent.Asia);
 1035    public static readonly Country Bangladesh = new(50, nameof(Bangladesh), "bd", "bgd", Continent.Asia);
 1036    public static readonly Country Armenia = new(51, nameof(Armenia), "am", "arm", Continent.Europe);
 1037    public static readonly Country Barbados = new(52, nameof(Barbados), "bb", "brb", Continent.NorthAmerica);
 1038    public static readonly Country Belgium = new(56, nameof(Belgium), "be", "bel", Continent.Europe);
 1039    public static readonly Country Bermuda = new(60, nameof(Bermuda), "bm", "bmu", Continent.NorthAmerica);
 1040    public static readonly Country Bhutan = new(64, nameof(Bhutan), "bt", "btn", Continent.Asia);
 1041    public static readonly Country Bolivia = new(68, nameof(Bolivia), "bo", "bol", Continent.SouthAmerica);
 1042    public static readonly Country BosniaAndHerzegovina = new(70, nameof(BosniaAndHerzegovina), "ba", "bih", Continent.E
 1043    public static readonly Country Botswana = new(72, nameof(Botswana), "bw", "bwa", Continent.Africa);
 1044    public static readonly Country BouvetIsland = new(74, nameof(BouvetIsland), "bv", "bvt", Continent.Antarctica);
 1045    public static readonly Country Brazil = new(76, nameof(Brazil), "br", "bra", Continent.SouthAmerica);
 1046    public static readonly Country Belize = new(84, nameof(Belize), "bz", "blz", Continent.NorthAmerica);
 1047    public static readonly Country BritishIndianOceanTerritory = new(86, nameof(BritishIndianOceanTerritory), "io", "iot
 1048    public static readonly Country SolomonIslands = new(90, nameof(SolomonIslands), "sb", "slb", Continent.Oceania);
 49    [SuppressMessage("ReSharper", "InconsistentNaming", Justification = "Country name contains 'UK' as per ISO 3166 stan
 1050    public static readonly Country VirginIslandsUK = new(92, nameof(VirginIslandsUK), "vg", "vgb", Continent.NorthAmeric
 1051    public static readonly Country BruneiDarussalam = new(96, nameof(BruneiDarussalam), "bn", "brn", Continent.Asia);
 1052    public static readonly Country Bulgaria = new(100, nameof(Bulgaria), "bg", "bgr", Continent.Europe);
 1053    public static readonly Country Myanmar = new(104, nameof(Myanmar), "mm", "mmr", Continent.Asia);
 1054    public static readonly Country Burundi = new(108, nameof(Burundi), "bi", "bdi", Continent.Africa);
 1055    public static readonly Country Belarus = new(112, nameof(Belarus), "by", "blr", Continent.Europe);
 1056    public static readonly Country Cambodia = new(116, nameof(Cambodia), "kh", "khm", Continent.Asia);
 1057    public static readonly Country Cameroon = new(120, nameof(Cameroon), "cm", "cmr", Continent.Africa);
 1058    public static readonly Country Canada = new(124, nameof(Canada), "ca", "can", Continent.NorthAmerica);
 1059    public static readonly Country CaboVerde = new(132, nameof(CaboVerde), "cv", "cpv", Continent.Africa);
 1060    public static readonly Country CaymanIslands = new(136, nameof(CaymanIslands), "ky", "cym", Continent.NorthAmerica);
 1061    public static readonly Country CentralAfricanRepublic = new(140, nameof(CentralAfricanRepublic), "cf", "caf", Contin
 1062    public static readonly Country SriLanka = new(144, nameof(SriLanka), "lk", "lka", Continent.Asia);
 1063    public static readonly Country Chad = new(148, nameof(Chad), "td", "tcd", Continent.Africa);
 1064    public static readonly Country Chile = new(152, nameof(Chile), "cl", "chl", Continent.SouthAmerica);
 1065    public static readonly Country China = new(156, nameof(China), "cn", "chn", Continent.Asia);
 1066    public static readonly Country Taiwan = new(158, nameof(Taiwan), "tw", "twn", Continent.Asia);
 1067    public static readonly Country ChristmasIsland = new(162, nameof(ChristmasIsland), "cx", "cxr", Continent.Asia);
 1068    public static readonly Country CocosIslands = new(166, nameof(CocosIslands), "cc", "cck", Continent.Asia);
 1069    public static readonly Country Colombia = new(170, nameof(Colombia), "co", "col", Continent.SouthAmerica);
 1070    public static readonly Country Comoros = new(174, nameof(Comoros), "km", "com", Continent.Africa);
 1071    public static readonly Country Mayotte = new(175, nameof(Mayotte), "yt", "myt", Continent.Africa);
 1072    public static readonly Country Congo = new(178, nameof(Congo), "cg", "cog", Continent.Africa);
 1073    public static readonly Country CongoDemocraticRepublic = new(180, nameof(CongoDemocraticRepublic), "cd", "cod", Cont
 1074    public static readonly Country CookIslands = new(184, nameof(CookIslands), "ck", "cok", Continent.Oceania);
 1075    public static readonly Country CostaRica = new(188, nameof(CostaRica), "cr", "cri", Continent.NorthAmerica);
 1076    public static readonly Country Croatia = new(191, nameof(Croatia), "hr", "hrv", Continent.Europe);
 1077    public static readonly Country Cuba = new(192, nameof(Cuba), "cu", "cub", Continent.NorthAmerica);
 1078    public static readonly Country Cyprus = new(196, nameof(Cyprus), "cy", "cyp", Continent.Europe);
 1079    public static readonly Country Czechia = new(203, nameof(Czechia), "cz", "cze", Continent.Europe);
 1080    public static readonly Country Benin = new(204, nameof(Benin), "bj", "ben", Continent.Africa);
 1081    public static readonly Country Denmark = new(208, nameof(Denmark), "dk", "dnk", Continent.Europe);
 1082    public static readonly Country Dominica = new(212, nameof(Dominica), "dm", "dma", Continent.Africa);
 1083    public static readonly Country DominicanRepublic = new(214, nameof(DominicanRepublic), "do", "dom", Continent.Africa
 1084    public static readonly Country Ecuador = new(218, nameof(Ecuador), "ec", "ecu", Continent.SouthAmerica);
 1085    public static readonly Country ElSalvador = new(222, nameof(ElSalvador), "sv", "slv", Continent.NorthAmerica);
 1086    public static readonly Country EquatorialGuinea = new(226, nameof(EquatorialGuinea), "gq", "gnq", Continent.Africa);
 1087    public static readonly Country Ethiopia = new(231, nameof(Ethiopia), "et", "eth", Continent.Africa);
 1088    public static readonly Country Eritrea = new(232, nameof(Eritrea), "er", "eri", Continent.Africa);
 1089    public static readonly Country Estonia = new(233, nameof(Estonia), "ee", "est", Continent.Europe);
 1090    public static readonly Country FaroeIslands = new(234, nameof(FaroeIslands), "fo", "fro", Continent.Europe);
 1091    public static readonly Country FalklandIslands = new(238, nameof(FalklandIslands), "fk", "flk", Continent.SouthAmeri
 1092    public static readonly Country SouthGeorgiaAndTheSouthSandwichIslands = new(239, nameof(SouthGeorgiaAndTheSouthSandw
 1093    public static readonly Country Fiji = new(242, nameof(Fiji), "fj", "fji", Continent.Asia);
 1094    public static readonly Country Finland = new(246, nameof(Finland), "fi", "fin", Continent.Europe);
 1095    public static readonly Country AlandIslands = new(248, nameof(AlandIslands), "ax", "ala", Continent.Europe);
 1096    public static readonly Country France = new(250, nameof(France), "fr", "fra", Continent.Europe);
 1097    public static readonly Country FrenchGuiana = new(254, nameof(FrenchGuiana), "gf", "guf", Continent.SouthAmerica);
 1098    public static readonly Country FrenchPolynesia = new(258, nameof(FrenchPolynesia), "pf", "pyf", Continent.Oceania);
 1099    public static readonly Country FrenchSouthernTerritories = new(260, nameof(FrenchSouthernTerritories), "tf", "atf", 
 10100    public static readonly Country Djibouti = new(262, nameof(Djibouti), "dj", "dji", Continent.Africa);
 10101    public static readonly Country Gabon = new(266, nameof(Gabon), "ga", "gab", Continent.Africa);
 10102    public static readonly Country Georgia = new(268, nameof(Georgia), "ge", "geo", Continent.Europe);
 10103    public static readonly Country Gambia = new(270, nameof(Gambia), "gm", "gmb", Continent.Africa);
 10104    public static readonly Country Palestine = new(275, nameof(Palestine), "ps", "pse", Continent.Asia);
 10105    public static readonly Country Germany = new(276, nameof(Germany), "de", "deu", Continent.Europe);
 10106    public static readonly Country Ghana = new(288, nameof(Ghana), "gh", "gha", Continent.Africa);
 10107    public static readonly Country Gibraltar = new(292, nameof(Gibraltar), "gi", "gib", Continent.Europe);
 10108    public static readonly Country Kiribati = new(296, nameof(Kiribati), "ki", "kir", Continent.Oceania);
 10109    public static readonly Country Greece = new(300, nameof(Greece), "gr", "grc", Continent.Europe);
 10110    public static readonly Country Greenland = new(304, nameof(Greenland), "gl", "grl", Continent.NorthAmerica);
 10111    public static readonly Country Grenada = new(308, nameof(Grenada), "gd", "grd", Continent.NorthAmerica);
 10112    public static readonly Country Guadeloupe = new(312, nameof(Guadeloupe), "gp", "glp", Continent.NorthAmerica);
 10113    public static readonly Country Guam = new(316, nameof(Guam), "gu", "gum", Continent.Oceania);
 10114    public static readonly Country Guatemala = new(320, nameof(Guatemala), "gt", "gtm", Continent.NorthAmerica);
 10115    public static readonly Country Guinea = new(324, nameof(Guinea), "gn", "gin", Continent.Africa);
 10116    public static readonly Country Guyana = new(328, nameof(Guyana), "gy", "guy", Continent.SouthAmerica);
 10117    public static readonly Country Haiti = new(332, nameof(Haiti), "ht", "hti", Continent.NorthAmerica);
 10118    public static readonly Country HeardIslandAndMcdonaldIslands = new(334, nameof(HeardIslandAndMcdonaldIslands), "hm",
 10119    public static readonly Country HolySee = new(336, nameof(HolySee), "va", "vat", Continent.Europe);
 10120    public static readonly Country Honduras = new(340, nameof(Honduras), "hn", "hnd", Continent.NorthAmerica);
 10121    public static readonly Country HongKong = new(344, nameof(HongKong), "hk", "hkg", Continent.Asia);
 10122    public static readonly Country Hungary = new(348, nameof(Hungary), "hu", "hun", Continent.Europe);
 10123    public static readonly Country Iceland = new(352, nameof(Iceland), "is", "isl", Continent.Europe);
 10124    public static readonly Country India = new(356, nameof(India), "in", "ind", Continent.Asia);
 10125    public static readonly Country Indonesia = new(360, nameof(Indonesia), "id", "idn", Continent.Asia);
 10126    public static readonly Country Iran = new(364, nameof(Iran), "ir", "irn", Continent.Asia);
 10127    public static readonly Country Iraq = new(368, nameof(Iraq), "iq", "irq", Continent.Asia);
 10128    public static readonly Country Ireland = new(372, nameof(Ireland), "ie", "irl", Continent.Europe);
 10129    public static readonly Country Israel = new(376, nameof(Israel), "il", "isr", Continent.Europe);
 10130    public static readonly Country Italy = new(380, nameof(Italy), "it", "ita", Continent.Europe);
 10131    public static readonly Country CoteIvoire = new(384, nameof(CoteIvoire), "ci", "civ", Continent.Africa);
 10132    public static readonly Country Jamaica = new(388, nameof(Jamaica), "jm", "jam", Continent.NorthAmerica);
 10133    public static readonly Country Japan = new(392, nameof(Japan), "jp", "jpn", Continent.Asia);
 10134    public static readonly Country Kazakhstan = new(398, nameof(Kazakhstan), "kz", "kaz", Continent.Asia);
 10135    public static readonly Country Jordan = new(400, nameof(Jordan), "jo", "jor", Continent.Asia);
 10136    public static readonly Country Kenya = new(404, nameof(Kenya), "ke", "ken", Continent.Africa);
 10137    public static readonly Country NorthKorea = new(408, nameof(NorthKorea), "kp", "prk", Continent.Asia);
 10138    public static readonly Country SouthKorea = new(410, nameof(SouthKorea), "kr", "kor", Continent.Asia);
 10139    public static readonly Country Kuwait = new(414, nameof(Kuwait), "kw", "kwt", Continent.Asia);
 10140    public static readonly Country Kyrgyzstan = new(417, nameof(Kyrgyzstan), "kg", "kgz", Continent.Asia);
 10141    public static readonly Country Lao = new(418, nameof(Lao), "la", "lao", Continent.Asia);
 10142    public static readonly Country Lebanon = new(422, nameof(Lebanon), "lb", "lbn", Continent.Asia);
 10143    public static readonly Country Lesotho = new(426, nameof(Lesotho), "ls", "lso", Continent.Africa);
 10144    public static readonly Country Latvia = new(428, nameof(Latvia), "lv", "lva", Continent.Europe);
 10145    public static readonly Country Liberia = new(430, nameof(Liberia), "lr", "lbr", Continent.Africa);
 10146    public static readonly Country Libya = new(434, nameof(Libya), "ly", "lby", Continent.Africa);
 10147    public static readonly Country Liechtenstein = new(438, nameof(Liechtenstein), "li", "lie", Continent.Europe);
 10148    public static readonly Country Lithuania = new(440, nameof(Lithuania), "lt", "ltu", Continent.Europe);
 10149    public static readonly Country Luxembourg = new(442, nameof(Luxembourg), "lu", "lux", Continent.Europe);
 10150    public static readonly Country Macao = new(446, nameof(Macao), "mo", "mac", Continent.Asia);
 10151    public static readonly Country Madagascar = new(450, nameof(Madagascar), "mg", "mdg", Continent.Africa);
 10152    public static readonly Country Malawi = new(454, nameof(Malawi), "mw", "mwi", Continent.Africa);
 10153    public static readonly Country Malaysia = new(458, nameof(Malaysia), "my", "mys", Continent.Asia);
 10154    public static readonly Country Maldives = new(462, nameof(Maldives), "mv", "mdv", Continent.Asia);
 10155    public static readonly Country Mali = new(466, nameof(Mali), "ml", "mli", Continent.Africa);
 10156    public static readonly Country Malta = new(470, nameof(Malta), "mt", "mlt", Continent.Europe);
 10157    public static readonly Country Martinique = new(474, nameof(Martinique), "mq", "mtq", Continent.NorthAmerica);
 10158    public static readonly Country Mauritania = new(478, nameof(Mauritania), "mr", "mrt", Continent.Africa);
 10159    public static readonly Country Mauritius = new(480, nameof(Mauritius), "mu", "mus", Continent.Africa);
 10160    public static readonly Country Mexico = new(484, nameof(Mexico), "mx", "mex", Continent.NorthAmerica);
 10161    public static readonly Country Monaco = new(492, nameof(Monaco), "mc", "mco", Continent.Europe);
 10162    public static readonly Country Mongolia = new(496, nameof(Mongolia), "mn", "mng", Continent.Asia);
 10163    public static readonly Country Moldova = new(498, nameof(Moldova), "md", "mda", Continent.Europe);
 10164    public static readonly Country Montenegro = new(499, nameof(Montenegro), "me", "mne", Continent.Europe);
 10165    public static readonly Country Montserrat = new(500, nameof(Montserrat), "ms", "msr", Continent.NorthAmerica);
 10166    public static readonly Country Morocco = new(504, nameof(Morocco), "ma", "mar", Continent.Africa);
 10167    public static readonly Country Mozambique = new(508, nameof(Mozambique), "mz", "moz", Continent.Africa);
 10168    public static readonly Country Oman = new(512, nameof(Oman), "om", "omn", Continent.Asia);
 10169    public static readonly Country Namibia = new(516, nameof(Namibia), "na", "nam", Continent.Africa);
 10170    public static readonly Country Nauru = new(520, nameof(Nauru), "nr", "nru", Continent.Oceania);
 10171    public static readonly Country Nepal = new(524, nameof(Nepal), "np", "npl", Continent.Asia);
 10172    public static readonly Country Netherlands = new(528, nameof(Netherlands), "nl", "nld", Continent.Europe);
 10173    public static readonly Country Curacao = new(531, nameof(Curacao), "cw", "cuw", Continent.SouthAmerica);
 10174    public static readonly Country Aruba = new(533, nameof(Aruba), "aw", "abw", Continent.SouthAmerica);
 10175    public static readonly Country SintMaarten = new(534, nameof(SintMaarten), "sx", "sxm", Continent.NorthAmerica);
 10176    public static readonly Country Bonaire = new(535, nameof(Bonaire), "bq", "bes", Continent.SouthAmerica);
 10177    public static readonly Country NewCaledonia = new(540, nameof(NewCaledonia), "nc", "ncl", Continent.Oceania);
 10178    public static readonly Country Vanuatu = new(548, nameof(Vanuatu), "vu", "vut", Continent.Asia);
 10179    public static readonly Country NewZealand = new(554, nameof(NewZealand), "nz", "nzl", Continent.Asia);
 10180    public static readonly Country Nicaragua = new(558, nameof(Nicaragua), "ni", "nic", Continent.NorthAmerica);
 10181    public static readonly Country Niger = new(562, nameof(Niger), "ne", "ner", Continent.Africa);
 10182    public static readonly Country Nigeria = new(566, nameof(Nigeria), "ng", "nga", Continent.Africa);
 10183    public static readonly Country Niue = new(570, nameof(Niue), "nu", "niu", Continent.Oceania);
 10184    public static readonly Country NorfolkIsland = new(574, nameof(NorfolkIsland), "nf", "nfk", Continent.Oceania);
 10185    public static readonly Country Norway = new(578, nameof(Norway), "no", "nor", Continent.Europe);
 10186    public static readonly Country NorthernMarianaIslands = new(580, nameof(NorthernMarianaIslands), "mp", "mnp", Contin
 10187    public static readonly Country UnitedStatesMinorOutlyingIslands = new(581, nameof(UnitedStatesMinorOutlyingIslands),
 10188    public static readonly Country Micronesia = new(583, nameof(Micronesia), "fm", "fsm", Continent.Oceania);
 10189    public static readonly Country MarshallIslands = new(584, nameof(MarshallIslands), "mh", "mhl", Continent.Oceania);
 10190    public static readonly Country Palau = new(585, nameof(Palau), "pw", "plw", Continent.Oceania);
 10191    public static readonly Country Pakistan = new(586, nameof(Pakistan), "pk", "pak", Continent.Asia);
 10192    public static readonly Country Panama = new(591, nameof(Panama), "pa", "pan", Continent.NorthAmerica);
 10193    public static readonly Country PapuaNewGuinea = new(598, nameof(PapuaNewGuinea), "pg", "png", Continent.Oceania);
 10194    public static readonly Country Paraguay = new(600, nameof(Paraguay), "py", "pry", Continent.SouthAmerica);
 10195    public static readonly Country Peru = new(604, nameof(Peru), "pe", "per", Continent.SouthAmerica);
 10196    public static readonly Country Philippines = new(608, nameof(Philippines), "ph", "phl", Continent.Asia);
 10197    public static readonly Country Pitcairn = new(612, nameof(Pitcairn), "pn", "pcn", Continent.Oceania);
 10198    public static readonly Country Poland = new(616, nameof(Poland), "pl", "pol", Continent.Europe);
 10199    public static readonly Country Portugal = new(620, nameof(Portugal), "pt", "prt", Continent.Europe);
 10200    public static readonly Country GuineaBissau = new(624, nameof(GuineaBissau), "gw", "gnb", Continent.Africa);
 10201    public static readonly Country TimorLeste = new(626, nameof(TimorLeste), "tl", "tls", Continent.Asia);
 10202    public static readonly Country PuertoRico = new(630, nameof(PuertoRico), "pr", "pri", Continent.NorthAmerica);
 10203    public static readonly Country Qatar = new(634, nameof(Qatar), "qa", "qat", Continent.Asia);
 10204    public static readonly Country Reunion = new(638, nameof(Reunion), "re", "reu", Continent.Africa);
 10205    public static readonly Country Romania = new(642, nameof(Romania), "ro", "rou", Continent.Europe);
 10206    public static readonly Country RussianFederation = new(643, nameof(RussianFederation), "ru", "rus", Continent.Europe
 10207    public static readonly Country Rwanda = new(646, nameof(Rwanda), "rw", "rwa", Continent.Africa);
 10208    public static readonly Country SaintBartheLemy = new(652, nameof(SaintBartheLemy), "bl", "blm", Continent.NorthAmeri
 10209    public static readonly Country SaintHelena = new(654, nameof(SaintHelena), "sh", "shn", Continent.Africa);
 10210    public static readonly Country SaintKittsAndNevis = new(659, nameof(SaintKittsAndNevis), "kn", "kna", Continent.Nort
 10211    public static readonly Country Anguilla = new(66, nameof(Anguilla), "ai", "aia", Continent.NorthAmerica);
 10212    public static readonly Country SaintLucia = new(662, nameof(SaintLucia), "lc", "lca", Continent.NorthAmerica);
 10213    public static readonly Country SaintMartin = new(663, nameof(SaintMartin), "mf", "maf", Continent.NorthAmerica);
 10214    public static readonly Country SaintPierreAndMiquelon = new(666, nameof(SaintPierreAndMiquelon), "pm", "spm", Contin
 10215    public static readonly Country SaintVincentAndTheGrenadines = new(670, nameof(SaintVincentAndTheGrenadines), "vc", "
 10216    public static readonly Country SanMarino = new(674, nameof(SanMarino), "sm", "smr", Continent.Europe);
 10217    public static readonly Country SaoTomeAndPrincipe = new(678, nameof(SaoTomeAndPrincipe), "st", "stp", Continent.Afri
 10218    public static readonly Country SaudiArabia = new(682, nameof(SaudiArabia), "sa", "sau", Continent.Asia);
 10219    public static readonly Country Senegal = new(686, nameof(Senegal), "sn", "sen", Continent.Africa);
 10220    public static readonly Country Serbia = new(688, nameof(Serbia), "rs", "srb", Continent.Europe);
 10221    public static readonly Country Seychelles = new(690, nameof(Seychelles), "sc", "syc", Continent.Africa);
 10222    public static readonly Country SierraLeone = new(694, nameof(SierraLeone), "sl", "sle", Continent.Africa);
 10223    public static readonly Country Singapore = new(702, nameof(Singapore), "sg", "sgp", Continent.Asia);
 10224    public static readonly Country Slovakia = new(703, nameof(Slovakia), "sk", "svk", Continent.Europe);
 10225    public static readonly Country VietNam = new(704, nameof(VietNam), "vn", "vnm", Continent.Asia);
 10226    public static readonly Country Slovenia = new(705, nameof(Slovenia), "si", "svn", Continent.Europe);
 10227    public static readonly Country Somalia = new(706, nameof(Somalia), "so", "som", Continent.Africa);
 10228    public static readonly Country SouthAfrica = new(710, nameof(SouthAfrica), "za", "zaf", Continent.Africa);
 10229    public static readonly Country Zimbabwe = new(716, nameof(Zimbabwe), "zw", "zwe", Continent.Africa);
 10230    public static readonly Country Spain = new(724, nameof(Spain), "es", "esp", Continent.Europe);
 10231    public static readonly Country SouthSudan = new(728, nameof(SouthSudan), "ss", "ssd", Continent.Africa);
 10232    public static readonly Country Sudan = new(729, nameof(Sudan), "sd", "sdn", Continent.Africa);
 10233    public static readonly Country WesternSahara = new(732, nameof(WesternSahara), "eh", "esh", Continent.Africa);
 10234    public static readonly Country Suriname = new(740, nameof(Suriname), "sr", "sur", Continent.Asia);
 10235    public static readonly Country SvalbardAndJanMayen = new(744, nameof(SvalbardAndJanMayen), "sj", "sjm", Continent.Eu
 10236    public static readonly Country Eswatini = new(748, nameof(Eswatini), "sz", "swz", Continent.Africa);
 10237    public static readonly Country Sweden = new(752, nameof(Sweden), "se", "swe", Continent.Europe);
 10238    public static readonly Country Switzerland = new(756, nameof(Switzerland), "ch", "che", Continent.Europe);
 10239    public static readonly Country SyrianArabRepublic = new(760, nameof(SyrianArabRepublic), "sy", "syr", Continent.Asia
 10240    public static readonly Country Tajikistan = new(762, nameof(Tajikistan), "tj", "tjk", Continent.Asia);
 10241    public static readonly Country Thailand = new(764, nameof(Thailand), "th", "tha", Continent.Asia);
 10242    public static readonly Country Togo = new(768, nameof(Togo), "tg", "tgo", Continent.Africa);
 10243    public static readonly Country Tokelau = new(772, nameof(Tokelau), "tk", "tkl", Continent.Oceania);
 10244    public static readonly Country Tonga = new(776, nameof(Tonga), "to", "ton", Continent.Oceania);
 10245    public static readonly Country TrinidadAndTobago = new(780, nameof(TrinidadAndTobago), "tt", "tto", Continent.SouthA
 10246    public static readonly Country UnitedArabEmirates = new(784, nameof(UnitedArabEmirates), "ae", "are", Continent.Asia
 10247    public static readonly Country Tunisia = new(788, nameof(Tunisia), "tn", "tun", Continent.Africa);
 10248    public static readonly Country Turkey = new(792, nameof(Turkey), "tr", "tur", Continent.Europe);
 10249    public static readonly Country Turkmenistan = new(795, nameof(Turkmenistan), "tm", "tkm", Continent.Asia);
 10250    public static readonly Country TurksAndCaicosIslands = new(796, nameof(TurksAndCaicosIslands), "tc", "tca", Continen
 10251    public static readonly Country Tuvalu = new(798, nameof(Tuvalu), "tv", "tuv", Continent.Asia);
 10252    public static readonly Country Uganda = new(800, nameof(Uganda), "ug", "uga", Continent.Africa);
 10253    public static readonly Country Ukraine = new(804, nameof(Ukraine), "ua", "ukr", Continent.Europe);
 10254    public static readonly Country NorthMacedonia = new(807, nameof(NorthMacedonia), "mk", "mkd", Continent.Europe);
 10255    public static readonly Country Egypt = new(818, nameof(Egypt), "eg", "egy", Continent.Africa);
 10256    public static readonly Country UnitedKingdomOfGreatBritainAndNorthernIreland = new(826, nameof(UnitedKingdomOfGreatB
 10257    public static readonly Country Guernsey = new(831, nameof(Guernsey), "gg", "ggy", Continent.Europe);
 10258    public static readonly Country Jersey = new(832, nameof(Jersey), "je", "jey", Continent.Europe);
 10259    public static readonly Country IsleOfMan = new(833, nameof(IsleOfMan), "im", "imn", Continent.Europe);
 10260    public static readonly Country Tanzania = new(834, nameof(Tanzania), "tz", "tza", Continent.Africa);
 10261    public static readonly Country UnitedStatesOfAmerica = new(840, nameof(UnitedStatesOfAmerica), "us", "usa", Continen
 262    [SuppressMessage("ReSharper", "InconsistentNaming", Justification = "Country name contains 'UK' as per ISO 3166 stan
 10263    public static readonly Country VirginIslandsUS = new(850, nameof(VirginIslandsUS), "vi", "vir", Continent.NorthAmeri
 10264    public static readonly Country BurkinaFaso = new(854, nameof(BurkinaFaso), "bf", "bfa", Continent.Africa);
 10265    public static readonly Country Uruguay = new(855, nameof(Uruguay), "uy", "ury", Continent.SouthAmerica);
 10266    public static readonly Country Uzbekistan = new(860, nameof(Uzbekistan), "uz", "uzb", Continent.Asia);
 10267    public static readonly Country Venezuela = new(862, nameof(Venezuela), "ve", "ven", Continent.SouthAmerica);
 10268    public static readonly Country WallisAndFutuna = new(876, nameof(WallisAndFutuna), "wf", "wlf", Continent.Oceania);
 10269    public static readonly Country Samoa = new(882, nameof(Samoa), "ws", "wsm", Continent.Asia);
 10270    public static readonly Country Yemen = new(887, nameof(Yemen), "ye", "yem", Continent.Asia);
 10271    public static readonly Country Zambia = new(894, nameof(Zambia), "zm", "zmb", Continent.Africa);
 272
 273    /// <summary>
 274    /// Initializes a new instance of the <see cref="Country"/> class with the specified ISO code, name, alpha-2 code, a
 275    /// </summary>
 276    /// <param name="iso">The ISO code of the country.</param>
 277    /// <param name="name">The name of the country.</param>
 278    /// <param name="alpha2">The alpha-2 code of the country.</param>
 279    /// <param name="alpha3">The alpha-3 code of the country.</param>
 280    /// <param name="continent">The continent of the country.</param>
 281    private Country(int iso, string name, string alpha2, string alpha3, Continent continent)
 2490282        : base(name)
 2490283        => (Iso, Alpha2, Alpha3, Continent) = (iso, alpha2, alpha3, continent);
 284
 285    /// <summary>
 286    /// Gets the ISO 3166 numeric code that uniquely identifies the country.
 287    /// </summary>
 288    /// <remarks>The ISO code is a standardized numeric identifier as defined by the ISO 3166-1 specification.
 289    /// This value is commonly used for interoperability with external systems and data formats that require country
 290    /// codes.</remarks>
 291    public int Iso { get; }
 292
 293    /// <summary>
 294    /// Gets the two-letter country code as defined by ISO 3166-1 alpha-2.
 295    /// </summary>
 296    public string Alpha2 { get; }
 297
 298    /// <summary>
 299    /// Gets the three-letter country code as defined by ISO 3166-1.
 300    /// </summary>
 301    public string Alpha3 { get; }
 302
 303    /// <summary>
 304    /// Gets the continent associated with the current instance.
 305    /// </summary>
 306    public Continent Continent { get; }
 307}
 308