public bool Equals(DiffElement <T> other) { return (ElementIndexFromCollection1.Equals(other.ElementIndexFromCollection1) && ElementFromCollection1.Equals(other.ElementFromCollection1) && ElementIndexFromCollection2.Equals(other.ElementIndexFromCollection2) && ElementFromCollection2.Equals(other.ElementFromCollection2) && Operation == other.Operation); }
/// <summary> /// Returns the hash code for this instance. /// </summary> /// <returns> /// A 32-bit signed integer that is the hash code for this instance. /// </returns> /// <filterpriority>2</filterpriority> public override int GetHashCode() { unchecked { var hashCode = ElementFromCollection1.GetHashCode(); hashCode = (hashCode * 397) ^ ElementFromCollection2.GetHashCode(); hashCode = (hashCode * 397) ^ (int)Operation; return(hashCode); } }