Esempio n. 1
0
 public override bool Equals(IDeltaOperation op)
 {
     if (ReferenceEquals(null, op))
     {
         return(false);
     }
     if (ReferenceEquals(this, op))
     {
         return(true);
     }
     if (op is RemoveKeyDeltaOperation remove)
     {
         return(Equals(Key, remove.Key) && Underlying.Equals(remove.Underlying));
     }
     return(false);
 }
Esempio n. 2
0
 public bool Equals(IDeltaOperation op)
 {
     if (ReferenceEquals(null, op))
     {
         return(false);
     }
     if (ReferenceEquals(this, op))
     {
         return(true);
     }
     if (op is DeltaGroup group)
     {
         return(Operations.SequenceEqual(group.Operations));
     }
     return(false);
 }
Esempio n. 3
0
 public override bool Equals(IDeltaOperation op)
 {
     if (ReferenceEquals(null, op))
     {
         return(false);
     }
     if (ReferenceEquals(this, op))
     {
         return(true);
     }
     if (op is UpdateDeltaOperation update)
     {
         return(Underlying.Equals(update.Underlying) && Values.SequenceEqual(update.Values));
     }
     return(false);
 }
Esempio n. 4
0
 public override bool Equals(IDeltaOperation op)
 {
     if (ReferenceEquals(null, op))
     {
         return(false);
     }
     if (ReferenceEquals(this, op))
     {
         return(true);
     }
     if (op is PutDeltaOperation put)
     {
         return(Equals(Key, put.Key) && Equals(Value, put.Value) && Underlying.Equals(put.Underlying));
     }
     return(false);
 }
Esempio n. 5
0
 public bool Equals(IDeltaOperation other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     if (other is AtomicDeltaOperation op)
     {
         return(Underlying.Equals(op.Underlying));
     }
     return(false);
 }
Esempio n. 6
0
 public abstract bool Equals(IDeltaOperation op);
Esempio n. 7
0
 internal ORDictionary(ORSet <TKey> keySet, IImmutableDictionary <TKey, TValue> valueMap, IDeltaOperation delta)
 {
     KeySet    = keySet;
     ValueMap  = valueMap;
     _syncRoot = delta;
 }