Class CountryCode
ISO 3166-1 alpha-2 country codes. Name carries the XML serialization value.
public sealed class CountryCode : SmartEnum<CountryCode, int>, ISmartEnum, IEquatable<SmartEnum<CountryCode, int>>, IComparable<SmartEnum<CountryCode, int>>
- Inheritance
-
CountryCode
- Implements
-
ISmartEnum
- Inherited Members
-
SmartEnum<CountryCode, int>.FromValue(int)SmartEnum<CountryCode, int>.FromValue(int, CountryCode)SmartEnum<CountryCode, int>.TryFromValue(int, out CountryCode)SmartEnum<CountryCode, int>.ToString()SmartEnum<CountryCode, int>.GetHashCode()SmartEnum<CountryCode, int>.Equals(SmartEnum<CountryCode, int>)SmartEnum<CountryCode, int>.When(SmartEnum<CountryCode, int>)SmartEnum<CountryCode, int>.When(params SmartEnum<CountryCode, int>[])SmartEnum<CountryCode, int>.CompareTo(SmartEnum<CountryCode, int>)SmartEnum<CountryCode, int>.ListSmartEnum<CountryCode, int>.NameSmartEnum<CountryCode, int>.Value
Fields
Ad
AD: Andorra.
public static readonly CountryCode Ad
Field Value
Ae
AE: United Arab Emirates (the).
public static readonly CountryCode Ae
Field Value
Af
AF: Afghanistan.
public static readonly CountryCode Af
Field Value
Ag
AG: Antigua and Barbuda.
public static readonly CountryCode Ag
Field Value
Ai
AI: Anguilla.
public static readonly CountryCode Ai
Field Value
Al
AL: Albania.
public static readonly CountryCode Al
Field Value
Am
AM: Armenia.
public static readonly CountryCode Am
Field Value
Ao
AO: Angola.
public static readonly CountryCode Ao
Field Value
Aq
AQ: Antarctica.
public static readonly CountryCode Aq
Field Value
Ar
AR: Argentina.
public static readonly CountryCode Ar
Field Value
As
AS: American Samoa.
public static readonly CountryCode As
Field Value
At
AT: Austria.
public static readonly CountryCode At
Field Value
Au
AU: Australia.
public static readonly CountryCode Au
Field Value
Aw
AW: Aruba.
public static readonly CountryCode Aw
Field Value
Ax
AX: Åland Islands.
public static readonly CountryCode Ax
Field Value
Az
AZ: Azerbaijan.
public static readonly CountryCode Az
Field Value
Ba
BA: Bosnia and Herzegovina.
public static readonly CountryCode Ba
Field Value
Bb
BB: Barbados.
public static readonly CountryCode Bb
Field Value
Bd
BD: Bangladesh.
public static readonly CountryCode Bd
Field Value
Be
BE: Belgium.
public static readonly CountryCode Be
Field Value
Bf
BF: Burkina Faso.
public static readonly CountryCode Bf
Field Value
Bg
BG: Bulgaria.
public static readonly CountryCode Bg
Field Value
Bh
BH: Bahrain.
public static readonly CountryCode Bh
Field Value
Bi
BI: Burundi.
public static readonly CountryCode Bi
Field Value
Bj
BJ: Benin.
public static readonly CountryCode Bj
Field Value
Bl
BL: Saint Barthélemy.
public static readonly CountryCode Bl
Field Value
Bm
BM: Bermuda.
public static readonly CountryCode Bm
Field Value
Bn
BN: Brunei Darussalam.
public static readonly CountryCode Bn
Field Value
Bo
BO: Bolivia (Plurinational State of).
public static readonly CountryCode Bo
Field Value
Bq
BQ: Bonaire, Sint Eustatius and Saba.
public static readonly CountryCode Bq
Field Value
Br
BR: Brazil.
public static readonly CountryCode Br
Field Value
Bs
BS: Bahamas (The).
public static readonly CountryCode Bs
Field Value
Bt
BT: Bhutan.
public static readonly CountryCode Bt
Field Value
Bv
BV: Bouvet Island.
public static readonly CountryCode Bv
Field Value
Bw
BW: Botswana.
public static readonly CountryCode Bw
Field Value
By
BY: Belarus.
public static readonly CountryCode By
Field Value
Bz
BZ: Belize.
public static readonly CountryCode Bz
Field Value
Ca
CA: Canada.
public static readonly CountryCode Ca
Field Value
Cc
CC: Cocos (Keeling) Islands (the).
public static readonly CountryCode Cc
Field Value
Cd
CD: Congo (the Democratic Republic of the).
public static readonly CountryCode Cd
Field Value
Cf
CF: Central African Republic (the).
public static readonly CountryCode Cf
Field Value
Cg
CG: Congo (the).
public static readonly CountryCode Cg
Field Value
Ch
CH: Switzerland.
public static readonly CountryCode Ch
Field Value
Ci
CI: Côte d'Ivoire.
public static readonly CountryCode Ci
Field Value
Ck
CK: Cook Islands (the).
public static readonly CountryCode Ck
Field Value
Cl
CL: Chile.
public static readonly CountryCode Cl
Field Value
Cm
CM: Cameroon.
public static readonly CountryCode Cm
Field Value
Cn
CN: China.
public static readonly CountryCode Cn
Field Value
Co
CO: Colombia.
public static readonly CountryCode Co
Field Value
Cr
CR: Costa Rica.
public static readonly CountryCode Cr
Field Value
Cu
CU: Cuba.
public static readonly CountryCode Cu
Field Value
Cv
CV: Cabo Verde.
public static readonly CountryCode Cv
Field Value
Cw
CW: Curaçao.
public static readonly CountryCode Cw
Field Value
Cx
CX: Christmas Island.
public static readonly CountryCode Cx
Field Value
Cy
CY: Cyprus.
public static readonly CountryCode Cy
Field Value
Cz
CZ: Czechia.
public static readonly CountryCode Cz
Field Value
De
DE: Germany.
public static readonly CountryCode De
Field Value
Dj
DJ: Djibouti.
public static readonly CountryCode Dj
Field Value
Dk
DK: Denmark.
public static readonly CountryCode Dk
Field Value
Dm
DM: Dominica.
public static readonly CountryCode Dm
Field Value
Do
DO: Dominican Republic (the).
public static readonly CountryCode Do
Field Value
Dz
DZ: Algeria.
public static readonly CountryCode Dz
Field Value
Ec
EC: Ecuador.
public static readonly CountryCode Ec
Field Value
Ee
EE: Estonia.
public static readonly CountryCode Ee
Field Value
Eg
EG: Egypt.
public static readonly CountryCode Eg
Field Value
Eh
EH: Western Sahara*.
public static readonly CountryCode Eh
Field Value
Er
ER: Eritrea.
public static readonly CountryCode Er
Field Value
Es
ES: Spain.
public static readonly CountryCode Es
Field Value
Et
ET: Ethiopia.
public static readonly CountryCode Et
Field Value
Fi
FI: Finland.
public static readonly CountryCode Fi
Field Value
Fj
FJ: Fiji.
public static readonly CountryCode Fj
Field Value
Fk
FK: Falkland Islands (the) [Malvinas].
public static readonly CountryCode Fk
Field Value
Fm
FM: Micronesia (Federated States of).
public static readonly CountryCode Fm
Field Value
Fo
FO: Faroe Islands (the).
public static readonly CountryCode Fo
Field Value
Fr
FR: France.
public static readonly CountryCode Fr
Field Value
Ga
GA: Gabon.
public static readonly CountryCode Ga
Field Value
Gb
GB: United Kingdom of Great Britain and Northern Ireland (the).
public static readonly CountryCode Gb
Field Value
Gd
GD: Grenada.
public static readonly CountryCode Gd
Field Value
Ge
GE: Georgia.
public static readonly CountryCode Ge
Field Value
Gf
GF: French Guiana.
public static readonly CountryCode Gf
Field Value
Gg
GG: Guernsey.
public static readonly CountryCode Gg
Field Value
Gh
GH: Ghana.
public static readonly CountryCode Gh
Field Value
Gi
GI: Gibraltar.
public static readonly CountryCode Gi
Field Value
Gl
GL: Greenland.
public static readonly CountryCode Gl
Field Value
Gm
GM: Gambia (the).
public static readonly CountryCode Gm
Field Value
Gn
GN: Guinea.
public static readonly CountryCode Gn
Field Value
Gp
GP: Guadeloupe.
public static readonly CountryCode Gp
Field Value
Gq
GQ: Equatorial Guinea.
public static readonly CountryCode Gq
Field Value
Gr
GR: Greece.
public static readonly CountryCode Gr
Field Value
Gs
GS: South Georgia and the South Sandwich Islands.
public static readonly CountryCode Gs
Field Value
Gt
GT: Guatemala.
public static readonly CountryCode Gt
Field Value
Gu
GU: Guam.
public static readonly CountryCode Gu
Field Value
Gw
GW: Guinea-Bissau.
public static readonly CountryCode Gw
Field Value
Gy
GY: Guyana.
public static readonly CountryCode Gy
Field Value
Hk
HK: Hong Kong.
public static readonly CountryCode Hk
Field Value
Hm
HM: Heard Island and McDonald Islands.
public static readonly CountryCode Hm
Field Value
Hn
HN: Honduras.
public static readonly CountryCode Hn
Field Value
Hr
HR: Croatia.
public static readonly CountryCode Hr
Field Value
Ht
HT: Haiti.
public static readonly CountryCode Ht
Field Value
Hu
HU: Hungary.
public static readonly CountryCode Hu
Field Value
Id
ID: Indonesia.
public static readonly CountryCode Id
Field Value
Ie
IE: Ireland.
public static readonly CountryCode Ie
Field Value
Il
IL: Israel.
public static readonly CountryCode Il
Field Value
Im
IM: Isle of Man.
public static readonly CountryCode Im
Field Value
In
IN: India.
public static readonly CountryCode In
Field Value
Io
IO: British Indian Ocean Territory (the).
public static readonly CountryCode Io
Field Value
Iq
IQ: Iraq.
public static readonly CountryCode Iq
Field Value
Ir
IR: Iran (Islamic Republic of).
public static readonly CountryCode Ir
Field Value
Is
IS: Iceland.
public static readonly CountryCode Is
Field Value
It
IT: Italy.
public static readonly CountryCode It
Field Value
Je
JE: Jersey.
public static readonly CountryCode Je
Field Value
Jm
JM: Jamaica.
public static readonly CountryCode Jm
Field Value
Jo
JO: Jordan.
public static readonly CountryCode Jo
Field Value
Jp
JP: Japan.
public static readonly CountryCode Jp
Field Value
Ke
KE: Kenya.
public static readonly CountryCode Ke
Field Value
Kg
KG: Kyrgyzstan.
public static readonly CountryCode Kg
Field Value
Kh
KH: Cambodia.
public static readonly CountryCode Kh
Field Value
Ki
KI: Kiribati.
public static readonly CountryCode Ki
Field Value
Km
KM: Comoros (the).
public static readonly CountryCode Km
Field Value
Kn
KN: Saint Kitts and Nevis.
public static readonly CountryCode Kn
Field Value
Kp
KP: Korea (the Democratic People's Republic of).
public static readonly CountryCode Kp
Field Value
Kr
KR: Korea (the Republic of).
public static readonly CountryCode Kr
Field Value
Kw
KW: Kuwait.
public static readonly CountryCode Kw
Field Value
Ky
KY: Cayman Islands (the).
public static readonly CountryCode Ky
Field Value
Kz
KZ: Kazakhstan.
public static readonly CountryCode Kz
Field Value
La
LA: Lao People's Democratic Republic (the).
public static readonly CountryCode La
Field Value
Lb
LB: Lebanon.
public static readonly CountryCode Lb
Field Value
Lc
LC: Saint Lucia.
public static readonly CountryCode Lc
Field Value
Li
LI: Liechtenstein.
public static readonly CountryCode Li
Field Value
Lk
LK: Sri Lanka.
public static readonly CountryCode Lk
Field Value
Lr
LR: Liberia.
public static readonly CountryCode Lr
Field Value
Ls
LS: Lesotho.
public static readonly CountryCode Ls
Field Value
Lt
LT: Lithuania.
public static readonly CountryCode Lt
Field Value
Lu
LU: Luxembourg.
public static readonly CountryCode Lu
Field Value
Lv
LV: Latvia.
public static readonly CountryCode Lv
Field Value
Ly
LY: Libya.
public static readonly CountryCode Ly
Field Value
Ma
MA: Morocco.
public static readonly CountryCode Ma
Field Value
Mc
MC: Monaco.
public static readonly CountryCode Mc
Field Value
Md
MD: Moldova (the Republic of).
public static readonly CountryCode Md
Field Value
Me
ME: Montenegro.
public static readonly CountryCode Me
Field Value
Mf
MF: Saint Martin (French part).
public static readonly CountryCode Mf
Field Value
Mg
MG: Madagascar.
public static readonly CountryCode Mg
Field Value
Mh
MH: Marshall Islands (the).
public static readonly CountryCode Mh
Field Value
Mk
MK: North Macedonia.
public static readonly CountryCode Mk
Field Value
Ml
ML: Mali.
public static readonly CountryCode Ml
Field Value
Mm
MM: Myanmar.
public static readonly CountryCode Mm
Field Value
Mn
MN: Mongolia.
public static readonly CountryCode Mn
Field Value
Mo
MO: Macao.
public static readonly CountryCode Mo
Field Value
Mp
MP: Northern Mariana Islands (the).
public static readonly CountryCode Mp
Field Value
Mq
MQ: Martinique.
public static readonly CountryCode Mq
Field Value
Mr
MR: Mauritania.
public static readonly CountryCode Mr
Field Value
Ms
MS: Montserrat.
public static readonly CountryCode Ms
Field Value
Mt
MT: Malta.
public static readonly CountryCode Mt
Field Value
Mu
MU: Mauritius.
public static readonly CountryCode Mu
Field Value
Mv
MV: Maldives.
public static readonly CountryCode Mv
Field Value
Mw
MW: Malawi.
public static readonly CountryCode Mw
Field Value
Mx
MX: Mexico.
public static readonly CountryCode Mx
Field Value
My
MY: Malaysia.
public static readonly CountryCode My
Field Value
Mz
MZ: Mozambique.
public static readonly CountryCode Mz
Field Value
Na
NA: Namibia.
public static readonly CountryCode Na
Field Value
Nc
NC: New Caledonia.
public static readonly CountryCode Nc
Field Value
Ne
NE: Niger (the).
public static readonly CountryCode Ne
Field Value
Nf
NF: Norfolk Island.
public static readonly CountryCode Nf
Field Value
Ng
NG: Nigeria.
public static readonly CountryCode Ng
Field Value
Ni
NI: Nicaragua.
public static readonly CountryCode Ni
Field Value
Nl
NL: Netherlands (the).
public static readonly CountryCode Nl
Field Value
No
NO: Norway.
public static readonly CountryCode No
Field Value
Np
NP: Nepal.
public static readonly CountryCode Np
Field Value
Nr
NR: Nauru.
public static readonly CountryCode Nr
Field Value
Nu
NU: Niue.
public static readonly CountryCode Nu
Field Value
Nz
NZ: New Zealand.
public static readonly CountryCode Nz
Field Value
Om
OM: Oman.
public static readonly CountryCode Om
Field Value
Pa
PA: Panama.
public static readonly CountryCode Pa
Field Value
Pe
PE: Peru.
public static readonly CountryCode Pe
Field Value
Pf
PF: French Polynesia.
public static readonly CountryCode Pf
Field Value
Pg
PG: Papua New Guinea.
public static readonly CountryCode Pg
Field Value
Ph
PH: Philippines (the).
public static readonly CountryCode Ph
Field Value
Pk
PK: Pakistan.
public static readonly CountryCode Pk
Field Value
Pl
PL: Poland.
public static readonly CountryCode Pl
Field Value
Pm
PM: Saint Pierre and Miquelon.
public static readonly CountryCode Pm
Field Value
Pn
PN: Pitcairn.
public static readonly CountryCode Pn
Field Value
Pr
PR: Puerto Rico.
public static readonly CountryCode Pr
Field Value
Ps
PS: Palestine, State of.
public static readonly CountryCode Ps
Field Value
Pt
PT: Portugal.
public static readonly CountryCode Pt
Field Value
Pw
PW: Palau.
public static readonly CountryCode Pw
Field Value
Py
PY: Paraguay.
public static readonly CountryCode Py
Field Value
Qa
QA: Qatar.
public static readonly CountryCode Qa
Field Value
Re
RE: Réunion.
public static readonly CountryCode Re
Field Value
Ro
RO: Romania.
public static readonly CountryCode Ro
Field Value
Rs
RS: Serbia.
public static readonly CountryCode Rs
Field Value
Ru
RU: Russian Federation (the).
public static readonly CountryCode Ru
Field Value
Rw
RW: Rwanda.
public static readonly CountryCode Rw
Field Value
Sa
SA: Saudi Arabia.
public static readonly CountryCode Sa
Field Value
Sb
SB: Solomon Islands.
public static readonly CountryCode Sb
Field Value
Sc
SC: Seychelles.
public static readonly CountryCode Sc
Field Value
Sd
SD: Sudan (the).
public static readonly CountryCode Sd
Field Value
Se
SE: Sweden.
public static readonly CountryCode Se
Field Value
Sg
SG: Singapore.
public static readonly CountryCode Sg
Field Value
Sh
SH: Saint Helena, Ascension and Tristan da Cunha.
public static readonly CountryCode Sh
Field Value
Si
SI: Slovenia.
public static readonly CountryCode Si
Field Value
Sj
SJ: Svalbard and Jan Mayen.
public static readonly CountryCode Sj
Field Value
Sk
SK: Slovakia.
public static readonly CountryCode Sk
Field Value
Sl
SL: Sierra Leone.
public static readonly CountryCode Sl
Field Value
Sm
SM: San Marino.
public static readonly CountryCode Sm
Field Value
Sn
SN: Senegal.
public static readonly CountryCode Sn
Field Value
So
SO: Somalia.
public static readonly CountryCode So
Field Value
Sr
SR: Suriname.
public static readonly CountryCode Sr
Field Value
Ss
SS: South Sudan.
public static readonly CountryCode Ss
Field Value
St
ST: Sao Tome and Principe.
public static readonly CountryCode St
Field Value
Sv
SV: El Salvador.
public static readonly CountryCode Sv
Field Value
Sx
SX: Sint Maarten (Dutch part).
public static readonly CountryCode Sx
Field Value
Sy
SY: Syrian Arab Republic (the).
public static readonly CountryCode Sy
Field Value
Sz
SZ: Eswatini.
public static readonly CountryCode Sz
Field Value
Tc
TC: Turks and Caicos Islands (the).
public static readonly CountryCode Tc
Field Value
Td
TD: Chad.
public static readonly CountryCode Td
Field Value
Tf
TF: French Southern Territories (the).
public static readonly CountryCode Tf
Field Value
Tg
TG: Togo.
public static readonly CountryCode Tg
Field Value
Th
TH: Thailand.
public static readonly CountryCode Th
Field Value
Tj
TJ: Tajikistan.
public static readonly CountryCode Tj
Field Value
Tk
TK: Tokelau.
public static readonly CountryCode Tk
Field Value
Tl
TL: Timor-Leste.
public static readonly CountryCode Tl
Field Value
Tm
TM: Turkmenistan.
public static readonly CountryCode Tm
Field Value
Tn
TN: Tunisia.
public static readonly CountryCode Tn
Field Value
To
TO: Tonga.
public static readonly CountryCode To
Field Value
Tr
TR: Türkiye.
public static readonly CountryCode Tr
Field Value
Tt
TT: Trinidad and Tobago.
public static readonly CountryCode Tt
Field Value
Tv
TV: Tuvalu.
public static readonly CountryCode Tv
Field Value
Tw
TW: Taiwan (Province of China).
public static readonly CountryCode Tw
Field Value
Tz
TZ: Tanzania, the United Republic of.
public static readonly CountryCode Tz
Field Value
Ua
UA: Ukraine.
public static readonly CountryCode Ua
Field Value
Ug
UG: Uganda.
public static readonly CountryCode Ug
Field Value
Um
UM: United States Minor Outlying Islands (the).
public static readonly CountryCode Um
Field Value
Us
US: United States of America (the).
public static readonly CountryCode Us
Field Value
Uy
UY: Uruguay.
public static readonly CountryCode Uy
Field Value
Uz
UZ: Uzbekistan.
public static readonly CountryCode Uz
Field Value
Va
VA: Holy See (the).
public static readonly CountryCode Va
Field Value
Vc
VC: Saint Vincent and the Grenadines.
public static readonly CountryCode Vc
Field Value
Ve
VE: Venezuela (Bolivarian Republic of).
public static readonly CountryCode Ve
Field Value
Vg
VG: Virgin Islands (British).
public static readonly CountryCode Vg
Field Value
Vi
VI: Virgin Islands (U.S.).
public static readonly CountryCode Vi
Field Value
Vn
VN: Viet Nam.
public static readonly CountryCode Vn
Field Value
Vu
VU: Vanuatu.
public static readonly CountryCode Vu
Field Value
Wf
WF: Wallis and Futuna.
public static readonly CountryCode Wf
Field Value
Ws
WS: Samoa.
public static readonly CountryCode Ws
Field Value
Xi
XI: United Kingdom (Northern Ireland).
public static readonly CountryCode Xi
Field Value
Ye
YE: Yemen.
public static readonly CountryCode Ye
Field Value
Yt
YT: Mayotte.
public static readonly CountryCode Yt
Field Value
Za
ZA: South Africa.
public static readonly CountryCode Za
Field Value
Zm
ZM: Zambia.
public static readonly CountryCode Zm
Field Value
Zw
ZW: Zimbabwe.
public static readonly CountryCode Zw
Field Value
_1a
1A: Kosovo.
public static readonly CountryCode _1a
Field Value
Properties
DisplayName
public string DisplayName { get; }
Property Value
Methods
FromName(string, bool)
[DynamicDependency(DynamicallyAccessedMemberTypes.PublicFields, typeof(CountryCode))]
public static CountryCode FromName(string name, bool ignoreCase = false)
Parameters
Returns
FromValue(int)
[DynamicDependency(DynamicallyAccessedMemberTypes.PublicFields, typeof(CountryCode))]
public static CountryCode FromValue(int value)
Parameters
valueint
Returns
TryFromName(string, out CountryCode)
[DynamicDependency(DynamicallyAccessedMemberTypes.PublicFields, typeof(CountryCode))]
public static bool TryFromName(string name, out CountryCode result)
Parameters
namestringresultCountryCode
Returns
TryFromValue(int, out CountryCode)
[DynamicDependency(DynamicallyAccessedMemberTypes.PublicFields, typeof(CountryCode))]
public static bool TryFromValue(int value, out CountryCode result)
Parameters
valueintresultCountryCode