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
파일 보기 프로젝트 열기: GuySmithFerrier/NCLDR

공개 메소드들

메소드 설명
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[]