System.Data.DataTableReader.GetFieldType C# (CSharp) Метод

GetFieldType() публичный Метод

public GetFieldType ( int ordinal ) : Type
ordinal int
Результат System.Type
        public override Type GetFieldType(int ordinal)
        {
            ValidateOpen(nameof(GetFieldType));
            ValidateReader();
            try
            {
                return (_currentDataTable.Columns[ordinal].DataType);
            }
            catch (IndexOutOfRangeException e)
            { // thrown by DataColumnCollection
                ExceptionBuilder.TraceExceptionWithoutRethrow(e);
                throw ExceptionBuilder.ArgumentOutOfRange(nameof(ordinal));
            }
        }