Esempio n. 1
0
 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);
     }
 }
Esempio n. 2
0
 private bool Equals(IDictionaryDifference <TKey, TVal> other) =>
 EntriesOnlyOnLeft.ReadOnlyIsEquivalentTo(other.EntriesOnlyOnLeft) &&
 EntriesOnlyOnRight.ReadOnlyIsEquivalentTo(other.EntriesOnlyOnRight) &&
 EntriesInCommon.ReadOnlyIsEquivalentTo(other.EntriesInCommon) &&
 EntriesDiffering.ReadOnlyIsEquivalentTo(other.EntriesDiffering);