private void StopBatchUpdate(ListBatchChange <T> batch) { if (batch != _batch) { return; } _batch = null; _subject.OnNext(batch); }
public IDisposable StartBatchUpdate() { if (_batch != null) { throw new NotImplementedException("recusive batch updates are not implemented"); } _batch = new ListBatchChange <T>(this.StopBatchUpdate); return(_batch); }