C# Class NCldr.Extensions.RegionInfoExtensions

RegionInfoExtensions is a collection of extension methods for the RegionInfo class to access CLDR data as well as static methods to access CLDR data from region names
显示文件 Open project: GuySmithFerrier/NCLDR

Public Methods

Method Description
GetCalendarPreferenceIds ( this regionInfo ) : string[]

GetCalendarPreferences gets the calendar preference ids for the RegionInfo

GetDayOfWeek ( this regionInfo ) : DayOfWeek

GetDayOfWeek gets the first DayOfWeek for the RegionInfo

GetHour ( this regionInfo ) : RegionHour

GetHour gets the RegionHour for the RegionInfo

GetMeasurementSystem ( this regionInfo ) : RegionMeasurementSystem

GetMeasurementSystem gets the MeasurementSystem for the RegionInfo

GetPaperSize ( this regionInfo ) : RegionPaperSize

GetPaperSize gets the RegionPaperSize for the RegionInfo

GetPostcodeRegex ( this regionInfo ) : string

GetPostcodeRegex gets the postal code regular expression for the RegionInfo

GetRegionCode ( this regionInfo ) : RegionCode

GetRegionCode gets the RegionCode for the RegionInfo

GetRegionInformation ( this regionInfo ) : RegionInformation

GetRegionInformation gets the RegionInformation for the RegionInfo

GetTelephoneCode ( this regionInfo ) : string

GetTelephoneCode gets the telephone code used by the RegionInfo

GetTelephoneCode gets only the first telephone code used by the region. There is only one telephone code when a region is a country/region. Only when a region is larger than a country/region (e.g. The World) will it have more than one telephone code.

GetTelephoneCodes ( this regionInfo ) : string[]

GetTelephoneCodes gets an array of telephone codes used by the RegionInfo

Method Details

GetCalendarPreferenceIds() public static method

GetCalendarPreferences gets the calendar preference ids for the RegionInfo
public static GetCalendarPreferenceIds ( this regionInfo ) : string[]
regionInfo this The RegionInfo to get the calendar preference ids for
return string[]

GetDayOfWeek() public static method

GetDayOfWeek gets the first DayOfWeek for the RegionInfo
public static GetDayOfWeek ( this regionInfo ) : DayOfWeek
regionInfo this The RegionInfo to get the first DayOfWeek for
return DayOfWeek

GetHour() public static method

GetHour gets the RegionHour for the RegionInfo
public static GetHour ( this regionInfo ) : RegionHour
regionInfo this The RegionInfo to get the RegionHour for
return RegionHour

GetMeasurementSystem() public static method

GetMeasurementSystem gets the MeasurementSystem for the RegionInfo
public static GetMeasurementSystem ( this regionInfo ) : RegionMeasurementSystem
regionInfo this The RegionInfo to get the MeasurementSystem for
return RegionMeasurementSystem

GetPaperSize() public static method

GetPaperSize gets the RegionPaperSize for the RegionInfo
public static GetPaperSize ( this regionInfo ) : RegionPaperSize
regionInfo this The RegionInfo to get the RegionPaperSize for
return RegionPaperSize

GetPostcodeRegex() public static method

GetPostcodeRegex gets the postal code regular expression for the RegionInfo
public static GetPostcodeRegex ( this regionInfo ) : string
regionInfo this The RegionInfo to get the postal code regular expression for
return string

GetRegionCode() public static method

GetRegionCode gets the RegionCode for the RegionInfo
public static GetRegionCode ( this regionInfo ) : RegionCode
regionInfo this The RegionInfo to get the RegionCode for
return RegionCode

GetRegionInformation() public static method

GetRegionInformation gets the RegionInformation for the RegionInfo
public static GetRegionInformation ( this regionInfo ) : RegionInformation
regionInfo this The RegionInfo to get the RegionInformation for
return RegionInformation

GetTelephoneCode() public static method

GetTelephoneCode gets the telephone code used by the RegionInfo
GetTelephoneCode gets only the first telephone code used by the region. There is only one telephone code when a region is a country/region. Only when a region is larger than a country/region (e.g. The World) will it have more than one telephone code.
public static GetTelephoneCode ( this regionInfo ) : string
regionInfo this The RegionInfo to get the telephone code for
return string

GetTelephoneCodes() public static method

GetTelephoneCodes gets an array of telephone codes used by the RegionInfo
public static GetTelephoneCodes ( this regionInfo ) : string[]
regionInfo this The RegionInfo to get the telephone codes for
return string[]