Пример #1
0
        public override bool Equals(object obj)
        {
            var other = obj as IAddress;

            if (other == null)
            {
                return(false);
            }

            return(PostalCode.EqualsIgnoreCase(other.PostalCode) &&
                   Phone.EqualsIgnoreCase(other.Phone) && EMail.EqualsIgnoreCase(other.EMail) &&
                   Country.EqualsIgnoreCase(other.Country) && City.EqualsIgnoreCase(other.City) && Region.EqualsIgnoreCase(other.Region) &&
                   Address1.EqualsIgnoreCase(other.Address1) && Address2.EqualsIgnoreCase(other.Address2));
        }