Exemple #1
0
        public override bool Equals(object obj)
        {
            if (obj is CountryCodeEntry)
            {
                CountryCodeEntry other = obj as CountryCodeEntry;
                return(Alpha2.Equals(other.Alpha2) & Alpha3.Equals(other.Alpha3) & CountryName.Equals(other.CountryName));
            }

            return(false);
        }
Exemple #2
0
        public override bool Equals(object obj)
        {
            if (obj is CountryCodeEntry entry)
            {
                return(Alpha2.Equals(entry.Alpha2) & Alpha3.Equals(entry.Alpha3) & CountryName.Equals(entry.CountryName)
                       & IsSEPAMember == entry.IsSEPAMember & IsUsingEuros == entry.IsUsingEuros);
            }

            return(false);
        }