public override int GetHashCode() { unchecked { int hashCode = EntriesOnlyOnLeft.GetHashCode(); hashCode = (hashCode * 397) ^ EntriesOnlyOnRight.GetHashCode(); hashCode = (hashCode * 397) ^ EntriesInCommon.GetHashCode(); hashCode = (hashCode * 397) ^ EntriesDiffering.GetHashCode(); return(hashCode); } }
private bool Equals(IDictionaryDifference <TKey, TVal> other) => EntriesOnlyOnLeft.ReadOnlyIsEquivalentTo(other.EntriesOnlyOnLeft) && EntriesOnlyOnRight.ReadOnlyIsEquivalentTo(other.EntriesOnlyOnRight) && EntriesInCommon.ReadOnlyIsEquivalentTo(other.EntriesInCommon) && EntriesDiffering.ReadOnlyIsEquivalentTo(other.EntriesDiffering);