Click or drag to resize

CountryToString Class

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
This class contains a single static method. The method returns a well-formatted string to represent any Country.
Inheritance Hierarchy
SystemObject
  Telogis.GeoBaseCountryToString

Namespace:  Telogis.GeoBase
Assembly:  geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax
public class CountryToString

The CountryToString type exposes the following members.

Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodStatic memberToString(Country)
Gets a well-formatted name for any given Country
Top
Remarks

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".

See Also