Example #1
0
        public ORDictionary <TKey, TValue> Merge(ORDictionary <TKey, TValue> other)
        {
            var mergedKeys = KeySet.Merge(other.KeySet);

            return(DryMerge(other, mergedKeys, mergedKeys.GetEnumerator()));
        }
Example #2
0
 /// <summary>
 /// Merges data from provided <see cref="ORSet{T}"/> into current CRDT,
 /// creating new immutable instance in a result.
 /// </summary>
 /// <param name="set">TBD</param>
 /// <returns>TBD</returns>
 public LocalORSet <T> Merge(ORSet <T> set) => new LocalORSet <T>(_currentNode, _crdt.Merge(set));