C# Класс 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
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Описание методов

GetCalendarPreferenceIds() публичный статический Метод

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
Результат string[]

GetDayOfWeek() публичный статический Метод

GetDayOfWeek gets the first DayOfWeek for the RegionInfo
public static GetDayOfWeek ( this regionInfo ) : DayOfWeek
regionInfo this The RegionInfo to get the first DayOfWeek for
Результат DayOfWeek

GetHour() публичный статический Метод

GetHour gets the RegionHour for the RegionInfo
public static GetHour ( this regionInfo ) : RegionHour
regionInfo this The RegionInfo to get the RegionHour for
Результат RegionHour

GetMeasurementSystem() публичный статический Метод

GetMeasurementSystem gets the MeasurementSystem for the RegionInfo
public static GetMeasurementSystem ( this regionInfo ) : RegionMeasurementSystem
regionInfo this The RegionInfo to get the MeasurementSystem for
Результат RegionMeasurementSystem

GetPaperSize() публичный статический Метод

GetPaperSize gets the RegionPaperSize for the RegionInfo
public static GetPaperSize ( this regionInfo ) : RegionPaperSize
regionInfo this The RegionInfo to get the RegionPaperSize for
Результат RegionPaperSize

GetPostcodeRegex() публичный статический Метод

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
Результат string

GetRegionCode() публичный статический Метод

GetRegionCode gets the RegionCode for the RegionInfo
public static GetRegionCode ( this regionInfo ) : RegionCode
regionInfo this The RegionInfo to get the RegionCode for
Результат RegionCode

GetRegionInformation() публичный статический Метод

GetRegionInformation gets the RegionInformation for the RegionInfo
public static GetRegionInformation ( this regionInfo ) : RegionInformation
regionInfo this The RegionInfo to get the RegionInformation for
Результат RegionInformation

GetTelephoneCode() публичный статический Метод

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
Результат string

GetTelephoneCodes() публичный статический Метод

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
Результат string[]