Ejemplo n.º 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = SourceType.GetHashCode();
         hashCode = (hashCode * 397) ^ DestinationType.GetHashCode();
         return(MembersToExpand.Aggregate(hashCode, (currentHash, p) => (currentHash * 397) ^ p.GetHashCode()));
     }
 }
Ejemplo n.º 2
0
 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);
 }