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
Afficher le fichier Open project: GuySmithFerrier/NCLDR

Méthodes publiques

Méthode 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 méthode

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
Résultat string[]

GetDayOfWeek() public static méthode

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

GetHour() public static méthode

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

GetMeasurementSystem() public static méthode

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

GetPaperSize() public static méthode

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

GetPostcodeRegex() public static méthode

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
Résultat string

GetRegionCode() public static méthode

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

GetRegionInformation() public static méthode

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

GetTelephoneCode() public static méthode

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
Résultat string

GetTelephoneCodes() public static méthode

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
Résultat string[]