Example #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);
 }
Example #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);
 }
Example #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);
 }
Example #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);
 }
Example #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);
 }
Example #6
0
 public abstract bool Equals(IDeltaOperation op);
Example #7
0
 internal ORDictionary(ORSet <TKey> keySet, IImmutableDictionary <TKey, TValue> valueMap, IDeltaOperation delta)
 {
     KeySet    = keySet;
     ValueMap  = valueMap;
     _syncRoot = delta;
 }