Country Class
Specifies the various countries and associated data.
public class Country
- Inheritance:
- System.Object Object
Constructors
Country(String, String)
Initializes an instance of the Country class.
public Country(string name, string alpha2Code)
Parameter | Type | Description |
---|---|---|
name | System.String | The name of the Country. |
alpha2Code | System.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 | System.String | The name of the Country. |
alpha2Code | System.String | The two-letter Country code. |
alpha3Code | System.String | The three-letter Country code. |
Properties
Alpha2Code
Gets the two-letter Country code.
Alpha3Code
Gets 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
- System.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.
Inherited Members
- System.Object.ToString()
- System.Object.Equals(System.Object)
- System.Object.Equals(System.Object, System.Object)
- System.Object.ReferenceEquals(System.Object, System.Object)
- System.Object.GetHashCode()
- System.Object.GetType()
- System.Object.MemberwiseClone()