Esempio n. 1
0
        public override bool Equals(object obj)
        {
            if (obj is WishlistGameModel compareWith)
            {
                return(Name.Equals(compareWith.Name) &&
                       Price.Equals(compareWith.Price) &&
                       Free.Equals(compareWith.Free) &&
                       ReleaseDate.Equals(compareWith.ReleaseDate) &&
                       ReviewDescription.Equals(compareWith.ReviewDescription) &&
                       ReviewScore.Equals(compareWith.ReviewScore) &&
                       Tags.All(tag => compareWith.Tags.Contains(tag)) &&
                       Type.Equals(compareWith.Type) &&
                       Banner.Equals(compareWith.Banner));
            }

            return(false);
        }