In This Article

Country Class

Specifies the various countries and associated data.

public class Country
Inheritance:
Object Object

Constructors

Country(String, String)

Initializes an instance of the Country class.

public Country(string name, string alpha2Code)
Parameter Type Description
name String

The name of the Country.

alpha2Code String

The two letter Country code.

Country(String, String, String)

Initializes an instance of the Country class.

public Country(string name, string alpha2Code, string alpha3Code)
Parameter Type Description
name String

The name of the Country.

alpha2Code String

The two-letter Country code.

alpha3Code String

The three-letter Country code.

Properties

Alpha2Code

Gets the two-letter Country code.

public string Alpha2Code { get; }

Property Value

String:

The two-letter Country code.

Alpha3Code

Gets the three-letter Country code.

public string Alpha3Code { get; }

Property Value

String:

The three-letter Country code.

Code

Gets the two-letter Country code.

[Obsolete("Use the Alpha2Code property instead.", false)]
public string Code { get; }

Property Value

String:

The two-letter Country code.

Countries

Gets the global collection of Country objects used by CountryComboBox.

public static DeferrableObservableCollection<Country> Countries { get; }

Property Value

DeferrableObservableCollection<Country>:

A collection of Country objects.

Name

Gets or sets the name of the Country.

public string Name { get; set; }

Property Value

String:

The name of the Country.

Inherited Members