protected virtual void MirrorRemove(IEnumerable <TSource> items, int count) { if (count == 1) { _items.Remove(items.First()); } else { using (_items.BulkUpdate()) { foreach (TSource item in items) { _items.Remove(item); } } } }
protected virtual void MirrorReset(IEnumerable <TSource> source) { using (_items.BulkUpdate()) _items.ReplaceAll(source.Select(item => _sourceToTarget(item))); }