Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetDateTime()

override DateTime System.Data.DataTableReader.GetDateTime ( int ordinal)
inline

Implements System.Data.IDataRecord.

Definition at line 457 of file DataTableReader.cs.

458 {
459 ValidateState("GetDateTime");
461 try
462 {
463 return (DateTime)_currentDataRow[ordinal];
464 }
465 catch (IndexOutOfRangeException e)
466 {
467 ExceptionBuilder.TraceExceptionWithoutRethrow(e);
468 throw ExceptionBuilder.ArgumentOutOfRange("ordinal");
469 }
470 }
void ValidateState(string caller)

References System.Data.DataTableReader._currentDataRow, System.Data.ExceptionBuilder.ArgumentOutOfRange(), System.Data.ExceptionBuilder.TraceExceptionWithoutRethrow(), System.Data.DataTableReader.ValidateReader(), and System.Data.DataTableReader.ValidateState().