Engines/FlatRedBallXNA/FlatRedBall/IO/Csv/CsvReader.cs
/// <summary>
/// Moves to the specified record index.
/// </summary>
/// <param name="record">The record index.</param>
/// <exception cref="T:ArgumentOutOfRangeException">
///		Record index must be > 0.
/// </exception>
/// <exception cref="T:InvalidOperationException">
///		Cannot move to a previous record in forward-only mode.
/// </exception>
/// <exception cref="T:System.ComponentModel.ObjectDisposedException">
///	The instance has been disposed of.
/// </exception>
Moves to the specified record index.
Moves to the specified record index .
public virtual void MoveTo(long record)
		{
			if (record < 0)
				throw new ArgumentOutOfRangeException("record is bad:" + record);
			if (record < _currentRecordIndex)
				throw new InvalidOperationException("Cannot move previous record in forward only");
			long offset = record - _currentRecordIndex;
			if (offset > 0)
			{
				do
				{
					if (!ReadNextRecord())
						throw new EndOfStreamException("Cannot read record at index");
				}
				while (--offset > 0);
			}
		}
public virtual void MoveTo ( long record ) { if ( record < 0 ) throw new ArgumentOutOfRangeException ( " " + record ) ; if ( record < _currentRecordIndex ) throw new InvalidOperationException ( " " ) ; long offset = record - _currentRecordIndex ; if ( offset > 0 ) { do { if ( ! ReadNextRecord ( ) ) throw new EndOfStreamException ( " " ) ; } while ( -- offset > 0 ) ; } }
Moves to the specified record index.
Moves to the specified record index .
//ExceptionMessage.CannotMovePreviousRecordInForwardOnly); // Get number of record to read
Record index must be > 0.
Record index must be > 0 .
Cannot move to a previous record in forward-only mode.
Cannot move to a previous record in forward - only mode .
The instance has been disposed of.
The instance has been disposed of .
record
long
The record index.
The record index .