Table of Contents

Class CountryManager

Namespace
Common
Assembly
Lykke.Common.dll
public static class CountryManager
Inheritance
CountryManager
Inherited Members

Fields

public static readonly IReadOnlyDictionary<string, string> CountryIso2ToNameLinks

Field Value

IReadOnlyDictionary<string, string>
public static readonly IReadOnlyDictionary<string, string> CountryIso3ToIso2Links

Field Value

IReadOnlyDictionary<string, string>
public static readonly IReadOnlyDictionary<string, string> CountryIso3ToNameLinks

Field Value

IReadOnlyDictionary<string, string>
public static readonly IReadOnlyDictionary<string, string> CountryNameToIso2Links

Field Value

IReadOnlyDictionary<string, string>
public static readonly IReadOnlyDictionary<string, string> CountryNameToIso3Links

Field Value

IReadOnlyDictionary<string, string>

Properties

public static IReadOnlyDictionary<string, string> CountryIso2ToIso3Links { get; }

Property Value

IReadOnlyDictionary<string, string>

Methods

AllAlpha2Codes()

public static IEnumerable<string> AllAlpha2Codes()

Returns

IEnumerable<string>

AllAlpha3Codes()

public static IEnumerable<string> AllAlpha3Codes()

Returns

IEnumerable<string>

ChineseCountry()

public static IDictionary<string, string> ChineseCountry()

Returns

IDictionary<string, string>

CisCountry()

public static IReadOnlyDictionary<string, string> CisCountry()

Returns

IReadOnlyDictionary<string, string>

GetCountryNameByIso2(string)

Get country name by country iso2 code.

public static string GetCountryNameByIso2(string iso2)

Parameters

iso2 string

Two 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 string

Three 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

string

GetIso3ByName(string)

public static string GetIso3ByName(string name)

Parameters

name string

Returns

string

HasIso2(string)

public static bool HasIso2(string iso2Id)

Parameters

iso2Id string

Returns

bool

HasIso3(string)

public static bool HasIso3(string iso3Id)

Parameters

iso3Id string

Returns

bool

Iso2ToIso3(string)

public static string Iso2ToIso3(string iso2)

Parameters

iso2 string

Returns

string

Iso3ToIso2(string)

public static string Iso3ToIso2(string iso3)

Parameters

iso3 string

Returns

string