public bool Equals(Listing other) { return(string.Equals(DataUrl, other.DataUrl) && string.Equals(Title, other.Title) && PopularityRank == other.PopularityRank && AverageReview.Equals(other.AverageReview) && string.Equals(Description, other.Description)); }
public override int GetHashCode() { unchecked { var hashCode = (DataUrl != null ? DataUrl.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Title != null ? Title.GetHashCode() : 0); hashCode = (hashCode * 397) ^ PopularityRank; hashCode = (hashCode * 397) ^ AverageReview.GetHashCode(); hashCode = (hashCode * 397) ^ (Description != null ? Description.GetHashCode() : 0); return(hashCode); } }