public override char GetChar(int ordinal)
{
ValidateState(nameof(GetChar));
ValidateReader();
try
{
return (char)_currentDataRow[ordinal];
}
catch (IndexOutOfRangeException e)
{
// thrown by DataColumnCollection
ExceptionBuilder.TraceExceptionWithoutRethrow(e);
throw ExceptionBuilder.ArgumentOutOfRange(nameof(ordinal));
}
}