Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class System.​Globalization.​RegionInfo
Assembly: System.Runtime
Inheritance: object → RegionInfo
Contains information about the country/region.
Properties
public
string
CurrencyEnglishName
Gets the name, in English, of the currency used in the country/region.
public
string
CurrencyNativeName
Gets the name of the currency used in the country/region, formatted in the native language of the country/region.
public
string
CurrencySymbol
Gets the currency symbol associated with the country/region.
public
string
DisplayName
Gets the full name of the country/region in the language of the localized version of .NET.
public
string
EnglishName
Gets the full name of the country/region in English.
public
int
GeoId
Gets a unique identification number for a geographical region, country, city, or location.
public
bool
IsMetric
Gets a value indicating whether the country/region uses the metric system for measurements.
public
string
ISOCurrencySymbol
Gets the three-character ISO 4217 currency symbol associated with the country/region.
public
string
Name
Gets the name or ISO 3166 two-letter country/region code for the current <see cref="T:System.Globalization.RegionInfo" /> object.
public
string
NativeName
Gets the name of a country/region formatted in the native language of the country/region.
public
string
ThreeLetterISORegionName
Gets the three-letter code defined in ISO 3166 for the country/region.
public
string
ThreeLetterWindowsRegionName
Gets the three-letter code assigned by Windows to the country/region represented by this <see cref="T:System.Globalization.RegionInfo" /> .
public
string
TwoLetterISORegionName
Gets the two-letter code defined in ISO 3166 for the country/region.
Methods
public
bool
Equals​(object value)
value
The object to compare with the current <see cref="T:System.Globalization.RegionInfo" /> .
Returns <see langword="true" /> if the <paramref name="value" /> parameter is a <see cref="T:System.Globalization.RegionInfo" /> object and its <see cref="P:System.Globalization.RegionInfo.Name" /> property is the same as the <see cref="P:System.Globalization.RegionInfo.Name" /> property of the current <see cref="T:System.Globalization.RegionInfo" /> object; otherwise, <see langword="false" /> .
Determines whether the specified object is the same instance as the current <see cref="T:System.Globalization.RegionInfo" /> .
public
int
GetHashCode​() Returns A hash code for the current <see cref="T:System.Globalization.RegionInfo" /> .
Serves as a hash function for the current <see cref="T:System.Globalization.RegionInfo" /> , suitable for hashing algorithms and data structures, such as a hash table.
public
string
ToString​() Returns A string containing the culture name or ISO 3166 two-letter country/region codes defined for the current <see cref="T:System.Globalization.RegionInfo" /> .
Returns a string containing the culture name or ISO 3166 two-letter country/region codes specified for the current <see cref="T:System.Globalization.RegionInfo" /> .
protected
void
Finalize​()
Inherited from object
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
public
Type
GetType​()
Inherited from object
Returns The exact runtime type of the current instance.
Gets the <see cref="T:System.Type" /> of the current instance.
protected
object
MemberwiseClone​()
Inherited from object
Returns A shallow copy of the current <see cref="T:System.Object" /> .
Creates a shallow copy of the current <see cref="T:System.Object" /> .