private void AssertReaderIsOpen()
 {
     if (this._isClosed)
     {
         throw Error.ADP_ClosedDataReaderError();
     }
 }
        private void AssertReaderIsOpen()
        {
            Debug.Assert(_underlyingReader == null, "The reader wasn't initialized");

            if (_isClosed)
            {
                throw Error.ADP_ClosedDataReaderError();
            }
        }
 /// <summary>
 ///     Ensures that the reader is actually open, and throws an exception if not
 /// </summary>
 private void AssertReaderIsOpen()
 {
     if (IsExplicitlyClosed)
     {
         throw Error.ADP_ClosedDataReaderError();
     }
     if (IsImplicitlyClosed)
     {
         throw Error.ADP_ImplicitlyClosedDataReaderError();
     }
 }
 private void AssertReaderIsOpenWithData()
 {
     if (this._isClosed)
     {
         throw Error.ADP_ClosedDataReaderError();
     }
     if (!this._currentResultSet.IsDataReady)
     {
         throw Error.ADP_NoData();
     }
 }
        private void AssertReaderIsOpenWithData()
        {
            Debug.Assert(_underlyingReader == null, "The reader wasn't initialized");

            if (_isClosed)
            {
                throw Error.ADP_ClosedDataReaderError();
            }

            if (!_currentResultSet.IsDataReady)
            {
                throw Error.ADP_NoData();
            }
        }
 private void AssertFieldIsReady(int ordinal)
 {
     if (this._isClosed)
     {
         throw Error.ADP_ClosedDataReaderError();
     }
     if (!this._currentResultSet.IsDataReady)
     {
         throw Error.ADP_NoData();
     }
     if (0 > ordinal || ordinal > this._currentResultSet.FieldCount)
     {
         throw new IndexOutOfRangeException();
     }
 }
        private void AssertFieldIsReady(int ordinal)
        {
            Debug.Assert(_underlyingReader == null, "The reader wasn't initialized");

            if (_isClosed)
            {
                throw Error.ADP_ClosedDataReaderError();
            }

            if (!_currentResultSet.IsDataReady)
            {
                throw Error.ADP_NoData();
            }

            if (0 > ordinal ||
                ordinal > _currentResultSet.FieldCount)
            {
                throw new IndexOutOfRangeException();
            }
        }