public void Add(EventMapField <TKey, TValue> other) { foreach (var kv in other) { InternalAdd(kv.Key, kv.Value); #if !DISABLE_EVENTS AddMapEvent(kv.Key, kv.Value); #endif } }
public void Add(EventMapField <TKey, TValue> other) { foreach (var kv in other) { if (kv.Value is IDeepCloneable <TValue> ) { InternalAdd(kv.Key, ((IDeepCloneable <TValue>)kv.Value).Clone()); } else { InternalAdd(kv.Key, kv.Value); } } }