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