Example #1
0
        /// <summary>
        /// Return the value of the specified field.
        /// </summary>
        /// <param name="i">The index of the field to find.</param>
        /// <returns>
        /// The <see cref="T:System.Object" /> which will contain the field value upon return.
        /// </returns>
        /// <exception cref="T:System.IndexOutOfRangeException">
        /// The index passed was outside the range of 0 through <see cref="P:System.Data.IDataRecord.FieldCount" />.
        /// </exception>
        public object GetValue(int i)
        {
            if (_isBof || _isClosed)
            {
                throw ExceptionBuilder.InvalidAttemptToRead();
            }

            return(_resultIterator.RowBuffer[i]);
        }