C# 클래스 Qowaiv.Globalization.PostalCodeCountryInfo

파일 보기 프로젝트 열기: Corniel/Qowaiv 1 사용 예제들

Private Properties

프로퍼티 타입 설명
New PostalCodeCountryInfo
PostalCodeCountryInfo System.Collections.Generic

공개 메소드들

메소드 설명
Format ( string postalcode ) : string

Formats the postal code.

If the country supports formatting and if the postal code is valid for the country.

GetCountriesWithFormatting ( ) : IEnumerable

Gets countries with postal codes with formatting.

GetCountriesWithSingleValue ( ) : IEnumerable

Gets countries with a single postal code value.

GetCountriesWithoutPostalCode ( ) : IEnumerable

Gets countries without a postal code system.

GetInstance ( Country country ) : PostalCodeCountryInfo

Gets the postal code country info associated with the specified country.

GetSingleValue ( ) : string

Gets the single value if supported, otherwise string.Empty.

IsValid ( string postalcode ) : bool

Returns true if the postal code is valid for the specified country, otherwise false.

Returns false if the country does not have postal codes.

비공개 메소드들

메소드 설명
New ( Country country, string validation, string search = null, string replace = null, bool isSingle = false ) : PostalCodeCountryInfo

Creates a new instance.

Used for ininitalating the Instances dictionary.

PostalCodeCountryInfo ( ) : System.Collections.Generic

Constructor.

메소드 상세

Format() 공개 메소드

Formats the postal code.
If the country supports formatting and if the postal code is valid for the country.
public Format ( string postalcode ) : string
postalcode string /// The postal code. ///
리턴 string

GetCountriesWithFormatting() 공개 정적인 메소드

Gets countries with postal codes with formatting.
public static GetCountriesWithFormatting ( ) : IEnumerable
리턴 IEnumerable

GetCountriesWithSingleValue() 공개 정적인 메소드

Gets countries with a single postal code value.
public static GetCountriesWithSingleValue ( ) : IEnumerable
리턴 IEnumerable

GetCountriesWithoutPostalCode() 공개 정적인 메소드

Gets countries without a postal code system.
public static GetCountriesWithoutPostalCode ( ) : IEnumerable
리턴 IEnumerable

GetInstance() 공개 정적인 메소드

Gets the postal code country info associated with the specified country.
public static GetInstance ( Country country ) : PostalCodeCountryInfo
country Country /// The specified country. ///
리턴 PostalCodeCountryInfo

GetSingleValue() 공개 메소드

Gets the single value if supported, otherwise string.Empty.
public GetSingleValue ( ) : string
리턴 string

IsValid() 공개 메소드

Returns true if the postal code is valid for the specified country, otherwise false.
Returns false if the country does not have postal codes.
public IsValid ( string postalcode ) : bool
postalcode string /// The postal code to test. ///
리턴 bool