Name
RegionInfo
Synopsis
This class contains properties for the selected region or country settings. It stores information on the name and standard letter codes for the region, the currency symbol, and whether the metric system is used or not. The region names are the two- and three-letter codes defined in ISO 3166. Currency strings are defined by ISO 4217.
public class RegionInfo { // Public Constructors public RegionInfo(intculture
); public RegionInfo(stringname
); // Public Static Properties public static RegionInfo CurrentRegion{get; } // Public Instance Properties public virtual string CurrencySymbol{get; } public virtual string DisplayName{get; } public virtual string EnglishName{get; } public virtual bool IsMetric{get; } public virtual string ISOCurrencySymbol{get; } public virtual string Name{get; } public virtual string ThreeLetterISORegionName{get; } public virtual string ThreeLetterWindowsRegionName{get; } public virtual string TwoLetterISORegionName{get; } // Public Instance Methods public override bool Equals(objectvalue
); // overrides object public override int GetHashCode( ); // overrides object public override string ToString( ); // overrides object }
Get C# in a Nutshell, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.