private void init() { this.tableCounter = 0; this.reachEORows = false; this.schemaIsChanged = false; this.currentDataTable = this.tables[this.tableCounter]; this.hasRows = this.currentDataTable.Rows.Count > 0; this.ReaderIsInvalid = false; this.listener = new DataTableReaderListener(this); }
private void Init() { _tableCounter = 0; _reachEORows = false; _schemaIsChanged = false; _currentDataTable = _tables[_tableCounter]; _hasRows = (_currentDataTable.Rows.Count > 0); ReaderIsInvalid = false; // we need to listen to current tables event so create a listener, it will listen to events and call us back. _listener = new DataTableReaderListener(this); }
private void init() { tableCounter = 0; reachEORows = false; schemaIsChanged = false; currentDataTable = tables[tableCounter]; hasRows = (currentDataTable.Rows.Count > 0); ReaderIsInvalid = false; // we need to listen to current tables event so create a listener, it will listen to events and call us back. listener = new DataTableReaderListener(this); }
public override void Close() { if (this.isOpen) { if (this.listener != null) { this.listener.CleanUp(); } this.listener = null; this.schemaTable = null; this.isOpen = false; } }
public override void Close() { if (!_isOpen) { return; } // no need to listen to events after close _listener?.CleanUp(); _listener = null !; _schemaTable = null; _isOpen = false; }
override public void Close() { if (!isOpen) { return; } // no need to listen to events after close if (listener != null) { listener.CleanUp(); } listener = null; schemaTable = null; isOpen = false; }
override public void Close() { if (!isOpen) return; // no need to listen to events after close if (listener != null) listener.CleanUp(); listener = null; schemaTable = null; isOpen = false; }
public override void Close() { if (!_isOpen) { return; } // no need to listen to events after close if (_listener != null) { _listener.CleanUp(); } _listener = null; _schemaTable = null; _isOpen = false; }