protected override void Dispose(bool disposing) { if (disposing) { if (dataView != null) { var sourceView = dataView.Source as IDisposable; if (sourceView != null) { sourceView.Dispose(); } dataView.Dispose(); dataView = null; } } base.Dispose(disposing); }
public BaseDataViewAdapter(IDataView <T> dataView) { this.dataView = new CachingDataView <T> (dataView); this.dataView.Updated += OnDataViewUpdated; }