コード例 #1
0
ファイル: ORDictionary.cs プロジェクト: vilinski/akka.net
        public ORDictionary <TKey, TValue> Merge(ORDictionary <TKey, TValue> other)
        {
            var mergedKeys = KeySet.Merge(other.KeySet);

            return(DryMerge(other, mergedKeys, mergedKeys.GetEnumerator()));
        }
コード例 #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));