Ejemplo n.º 1
0
 public PNCounterDictionary <TKey> Merge(PNCounterDictionary <TKey> other) =>
 new PNCounterDictionary <TKey>(_underlying.Merge(other._underlying));
Ejemplo n.º 2
0
            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));
            }
Ejemplo n.º 4
0
 public ORMultiDictionary<TKey, TValue> Merge(ORMultiDictionary<TKey, TValue> other) =>
     new ORMultiDictionary<TKey, TValue>(_underlying.Merge(other._underlying));