CountryToString Class |
Namespace: Telogis.GeoBase
The CountryToString type exposes the following members.
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
ToString(Country) |
Gets a well-formatted name for any given Country |
It is possible to use the ToString() method of the Country enum, but for display purposes it is preferential to use this method to ensure that the country's name is displayed correctly.
For example the "Bosnia and Herzegovina" has an enum ToString of "BosniaAndHerzegovina", which is undesirable.
In all cases this method will return the country correctly, ie "Bosnia and Herzegovina".