public override int GetHashCode() { unchecked { var hashCode = Id; hashCode = (hashCode * 397) ^ Content.GetHashCode(); hashCode = (hashCode * 397) ^ Rating; hashCode = (hashCode * 397) ^ PostedOn.GetHashCode(); hashCode = (hashCode * 397) ^ MovieId; hashCode = (hashCode * 397) ^ Movie.GetHashCode(); return(hashCode); } }
protected bool Equals(Review other) { return(Id == other.Id && Content == other.Content && Rating == other.Rating && PostedOn.Equals(other.PostedOn) && MovieId == other.MovieId && Movie.Equals(other.Movie)); }