Changeup EEA/EU
This commit is contained in:
parent
340a53bf19
commit
9137824362
|
|
@ -1017,7 +1017,7 @@ namespace NejCommon.Models
|
|||
public static CultureInfo GetCultureInfo(this Country country) => new CultureInfo(country.GetCountryCode());
|
||||
public static string GetDisplayName(this Country country) => CountryProvider.GetCountry(country.GetCountryCode()).NativeName;
|
||||
|
||||
public static bool IsEEA(this Country country) => country switch
|
||||
public static bool IsEU(this Country country) => country switch
|
||||
{
|
||||
Country.AT => true,
|
||||
Country.BE => true,
|
||||
|
|
@ -1047,12 +1047,16 @@ namespace NejCommon.Models
|
|||
Country.ES => true,
|
||||
Country.SE => true,
|
||||
|
||||
_ => false
|
||||
};
|
||||
public static bool IsEEA(this Country country) => IsEEA(country) || (country switch
|
||||
{
|
||||
//extras
|
||||
Country.LI => true,
|
||||
Country.IS => true,
|
||||
Country.NO => true,
|
||||
_ => false
|
||||
};
|
||||
});
|
||||
|
||||
public static bool IsSEPA(this Country country) => IsEEA(country) || (country switch{
|
||||
Country.CH => true,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user