C# Class NCldr.Extensions.RegionExtensions

RegionExtensions is a set of methods that provide easy access to NCLDR data for regions
显示文件 Open project: GuySmithFerrier/NCLDR Class Usage Examples

Public Methods

Method Description
GetCalendarPreferenceIds ( string regionId ) : string[]

GetCalendarPreferenceIds gets the calendar preference ids for the region

GetFirstDayOfWeek ( string regionId ) : DayOfWeek

GetFirstDayOfWeek gets the first DayOfWeek for the region

GetHour ( string regionId ) : RegionHour

GetHour gets the RegionHour for the region

GetMeasurementSystem ( string regionId ) : RegionMeasurementSystem

GetMeasurementSystem gets the MeasurementSystem for the region

GetPaperSize ( string regionId ) : RegionPaperSize

GetPaperSize gets the RegionPaperSize for the region

GetPostcodeRegex ( string regionId ) : string

GetPostcodeRegex gets the postal code regular expression for the region

GetRegionCode ( string regionId ) : RegionCode

GetRegionCode gets the RegionCode for the region

GetRegionInformation ( string regionId ) : RegionInformation

GetRegionInformation gets the RegionInformation for the region

GetTelephoneCode ( string regionId ) : string

GetTelephoneCode gets the telephone code used by the region

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 ( string regionId ) : string[]

GetTelephoneCodes gets an array of telephone codes used by the region

Method Details

GetCalendarPreferenceIds() public static method

GetCalendarPreferenceIds gets the calendar preference ids for the region
public static GetCalendarPreferenceIds ( string regionId ) : string[]
regionId string The Id of the region to get the calendar preference ids for
return string[]

GetFirstDayOfWeek() public static method

GetFirstDayOfWeek gets the first DayOfWeek for the region
public static GetFirstDayOfWeek ( string regionId ) : DayOfWeek
regionId string The Id of the region to get the first DayOfWeek for
return DayOfWeek

GetHour() public static method

GetHour gets the RegionHour for the region
public static GetHour ( string regionId ) : RegionHour
regionId string The Id of the region to get the RegionHour for
return RegionHour

GetMeasurementSystem() public static method

GetMeasurementSystem gets the MeasurementSystem for the region
public static GetMeasurementSystem ( string regionId ) : RegionMeasurementSystem
regionId string The Id of the region to get the MeasurementSystem for
return RegionMeasurementSystem

GetPaperSize() public static method

GetPaperSize gets the RegionPaperSize for the region
public static GetPaperSize ( string regionId ) : RegionPaperSize
regionId string The Id of the region to get the RegionPaperSize for
return RegionPaperSize

GetPostcodeRegex() public static method

GetPostcodeRegex gets the postal code regular expression for the region
public static GetPostcodeRegex ( string regionId ) : string
regionId string The Id of the region to get the postal code regular expression for
return string

GetRegionCode() public static method

GetRegionCode gets the RegionCode for the region
public static GetRegionCode ( string regionId ) : RegionCode
regionId string The Id of the region to get the RegionCode for
return RegionCode

GetRegionInformation() public static method

GetRegionInformation gets the RegionInformation for the region
public static GetRegionInformation ( string regionId ) : RegionInformation
regionId string The Id of the region to get the RegionInformation for
return RegionInformation

GetTelephoneCode() public static method

GetTelephoneCode gets the telephone code used by the region
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 ( string regionId ) : string
regionId string The Id of the region to get the telephone code for
return string

GetTelephoneCodes() public static method

GetTelephoneCodes gets an array of telephone codes used by the region
public static GetTelephoneCodes ( string regionId ) : string[]
regionId string The Id of the region to get the telephone codes for
return string[]