コード例 #1
0
            /// <summary>
            /// Sets the enumerator to its initial position, which is before the first record in the CSV.
            /// </summary>
            public void Reset()
            {
                if (_reader._currentRecordIndex != _currentRecordIndex)
                {
                    throw new InvalidOperationException(ExceptionMessage.EnumerationVersionCheckFailed);
                }

                _reader.MoveTo(-1);

                _current            = null;
                _currentRecordIndex = _reader._currentRecordIndex;
            }