public bool Equals(RssFeedViewModel other) { return(!ReferenceEquals(null, other) && (ReferenceEquals(this, other) || FeedId == other.FeedId && string.Equals(Title, other.Title) && string.Equals(RelatedLink, other.RelatedLink) && NewsDate.Equals(other.NewsDate))); }
public override int GetHashCode() { unchecked { var hashCode = FeedId; if (Title != null) { hashCode = (hashCode * 397) ^ Title.GetHashCode(); } if (RelatedLink != null) { hashCode = (hashCode * 397) ^ RelatedLink.GetHashCode(); } hashCode = (hashCode * 397) ^ NewsDate.GetHashCode(); return(hashCode); } }