public PNCounterDictionary <TKey> Merge(PNCounterDictionary <TKey> other) => new PNCounterDictionary <TKey>(_underlying.Merge(other._underlying));
public IReplicatedData Merge(IReplicatedData other) { if (other is PNCounterDictionaryDelta d) { return(new PNCounterDictionaryDelta((ORDictionary <TKey, PNCounter> .IDeltaOperation)Underlying.Merge(d.Underlying))); } return(new PNCounterDictionaryDelta((ORDictionary <TKey, PNCounter> .IDeltaOperation)Underlying.Merge(other))); }
public IReplicatedData Merge(IReplicatedData other) { if (other is ORMultiValueDictionaryDelta d) { return(new ORMultiValueDictionaryDelta((ORDictionary <TKey, ORSet <TValue> > .IDeltaOperation)Underlying.Merge(d.Underlying), WithValueDeltas || d.WithValueDeltas)); } return(new ORMultiValueDictionaryDelta((ORDictionary <TKey, ORSet <TValue> > .IDeltaOperation)Underlying.Merge(other), WithValueDeltas)); }
public ORMultiDictionary<TKey, TValue> Merge(ORMultiDictionary<TKey, TValue> other) => new ORMultiDictionary<TKey, TValue>(_underlying.Merge(other._underlying));