From 9137824362e065b6248d72a9a79f792bdf5a6377 Mon Sep 17 00:00:00 2001 From: honzapatCZ Date: Sat, 9 May 2026 13:07:33 +0200 Subject: [PATCH] Changeup EEA/EU --- Models/Country.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Models/Country.cs b/Models/Country.cs index 82d520e..0031baf 100644 --- a/Models/Country.cs +++ b/Models/Country.cs @@ -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,