public override int GetHashCode() { unchecked { var hashCode = SourceType.GetHashCode(); hashCode = (hashCode * 397) ^ DestinationType.GetHashCode(); return(MembersToExpand.Aggregate(hashCode, (currentHash, p) => (currentHash * 397) ^ p.GetHashCode())); } }
public bool Equals(ExpressionRequest other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(MembersToExpand.SequenceEqual(other.MembersToExpand) && SourceType == other.SourceType && DestinationType == other.DestinationType); }