Ejemplo n.º 1
0
        public bool Equals(HouseDto other)
        {
            if (other == null)
            {
                return(false);
            }

            ////Note that SequenceEqual will return false if the items are the same but in different orders.
            return(Id == other.Id &&
                   string.Equals(Name, other.Name) &&
                   Seats.SequenceEqual(other.Seats) &&
                   string.Equals(Region, other.Region) &&
                   string.Equals(CoatOfArms, other.CoatOfArms) &&
                   string.Equals(Words, other.Words) &&
                   Titles.SequenceEqual(other.Titles) &&
                   CurrentLord == other.CurrentLord &&
                   Founder == other.Founder &&
                   string.Equals(Founded, other.Founded) &&
                   Heir == other.Heir &&
                   Overlord == other.Overlord &&
                   string.Equals(DiedOut, other.DiedOut) &&
                   AncestralWeapons.SequenceEqual(other.AncestralWeapons) &&
                   CadetBranches.SequenceEqual(other.CadetBranches));
        }