GetInstance() public static method

Gets the postal code country info associated with the specified country.
public static GetInstance ( Country country ) : PostalCodeCountryInfo
country Country /// The specified country. ///
return PostalCodeCountryInfo
Beispiel #1
0
 /// <summary>Gets countries with postal codes with formatting.</summary>
 public static IEnumerable <Country> GetCountriesWithFormatting()
 {
     return(Country.GetExisting().Where(country => PostalCodeCountryInfo.GetInstance(country).HasFormatting));
 }
Beispiel #2
0
 /// <summary>Gets countries with a single postal code value.</summary>
 public static IEnumerable <Country> GetCountriesWithSingleValue()
 {
     return(Country.GetExisting().Where(country => PostalCodeCountryInfo.GetInstance(country).IsSingleValue));
 }
Beispiel #3
0
 /// <summary>Gets countries without a postal code system.</summary>
 public static IEnumerable <Country> GetCountriesWithoutPostalCode()
 {
     return(Country.GetExisting().Where(country => !PostalCodeCountryInfo.GetInstance(country).HasPostalCode));
 }