Свойство | Тип | Описание | |
---|---|---|---|
New | |||
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 ( |
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 ( |
Creates a new instance. Used for ininitalating the Instances dictionary. |
|
PostalCodeCountryInfo ( ) : System.Collections.Generic |
Constructor.
|
public Format ( string postalcode ) : string | ||
postalcode | string | /// The postal code. /// |
Результат | string |
public static GetCountriesWithFormatting ( ) : IEnumerable |
||
Результат | IEnumerable |
public static GetCountriesWithSingleValue ( ) : IEnumerable |
||
Результат | IEnumerable |
public static GetCountriesWithoutPostalCode ( ) : IEnumerable |
||
Результат | IEnumerable |
public static GetInstance ( |
||
country | /// The specified country. /// | |
Результат |
public IsValid ( string postalcode ) : bool | ||
postalcode | string | /// The postal code to test. /// |
Результат | bool |