Свойство | Type | Description | |
---|---|---|---|
New | |||
PostalCodeCountryInfo | System.Collections.Generic |
Méthode | Description | |
---|---|---|
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. |
Méthode | Description | |
---|---|---|
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. /// |
Résultat | string |
public static GetCountriesWithFormatting ( ) : IEnumerable |
||
Résultat | IEnumerable |
public static GetCountriesWithSingleValue ( ) : IEnumerable |
||
Résultat | IEnumerable |
public static GetCountriesWithoutPostalCode ( ) : IEnumerable |
||
Résultat | IEnumerable |
public static GetInstance ( |
||
country | /// The specified country. /// | |
Résultat |
public IsValid ( string postalcode ) : bool | ||
postalcode | string | /// The postal code to test. /// |
Résultat | bool |