private void ValidateReader() { if (this.ReaderIsInvalid) { throw ExceptionBuilder.InvalidDataTableReader(this.currentDataTable.TableName); } if (this.IsSchemaChanged) { throw ExceptionBuilder.DataTableReaderSchemaIsInvalid(this.currentDataTable.TableName); } }
private void ValidateReader() { if (ReaderIsInvalid) { throw ExceptionBuilder.InvalidDataTableReader(_currentDataTable.TableName); } if (IsSchemaChanged) { throw ExceptionBuilder.DataTableReaderSchemaIsInvalid(_currentDataTable.TableName); // may be we can use better error message! } }