Class CountryManager
- Namespace
- Common
- Assembly
- Lykke.Common.dll
public static class CountryManager
- Inheritance
-
CountryManager
- Inherited Members
Fields
CountryIso2ToNameLinks
public static readonly IReadOnlyDictionary<string, string> CountryIso2ToNameLinks
Field Value
CountryIso3ToIso2Links
public static readonly IReadOnlyDictionary<string, string> CountryIso3ToIso2Links
Field Value
CountryIso3ToNameLinks
public static readonly IReadOnlyDictionary<string, string> CountryIso3ToNameLinks
Field Value
CountryNameToIso2Links
public static readonly IReadOnlyDictionary<string, string> CountryNameToIso2Links
Field Value
CountryNameToIso3Links
public static readonly IReadOnlyDictionary<string, string> CountryNameToIso3Links
Field Value
Properties
CountryIso2ToIso3Links
public static IReadOnlyDictionary<string, string> CountryIso2ToIso3Links { get; }
Property Value
Methods
AllAlpha2Codes()
public static IEnumerable<string> AllAlpha2Codes()
Returns
AllAlpha3Codes()
public static IEnumerable<string> AllAlpha3Codes()
Returns
ChineseCountry()
public static IDictionary<string, string> ChineseCountry()
Returns
CisCountry()
public static IReadOnlyDictionary<string, string> CisCountry()
Returns
GetCountryNameByIso2(string)
Get country name by country iso2
code.
public static string GetCountryNameByIso2(string iso2)
Parameters
iso2
stringTwo capital letter country code.
Returns
- string
Country name for given code.
Empty string if code is null, empty or invalid.
Examples
GetFullNameByCode("RU");
GetCountryNameByIso3(string)
Get country name by country iso3
code.
public static string GetCountryNameByIso3(string iso3)
Parameters
iso3
stringThree capital letter country code.
Returns
- string
Country name for given code.
Empty string if code is null, empty or invalid.
Examples
GetFullNameByCode("RUS");
GetIso2ByName(string)
public static string GetIso2ByName(string name)
Parameters
name
string
Returns
GetIso3ByName(string)
public static string GetIso3ByName(string name)
Parameters
name
string
Returns
HasIso2(string)
public static bool HasIso2(string iso2Id)
Parameters
iso2Id
string
Returns
HasIso3(string)
public static bool HasIso3(string iso3Id)
Parameters
iso3Id
string
Returns
Iso2ToIso3(string)
public static string Iso2ToIso3(string iso2)
Parameters
iso2
string
Returns
Iso3ToIso2(string)
public static string Iso3ToIso2(string iso3)
Parameters
iso3
string