Changeup EEA/EU

This commit is contained in:
honzapatCZ 2026-05-09 13:07:33 +02:00
parent 340a53bf19
commit 9137824362

View File

@ -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,