Show / Hide Table of Contents

Struct CsvDataReader.RecordEnumerator

Supports a simple iteration over the records of a CsvDataReader.

Inherited Members
System.ValueType.Equals(System.Object)
ValueType.GetHashCode()
ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
Namespace: IRM.Data
Assembly: IRM.dll
Syntax
public struct RecordEnumerator : IEnumerator<string[]>, IDisposable, IEnumerator

Constructors

RecordEnumerator(CsvDataReader)

Initializes a new instance of the CsvDataReader.RecordEnumerator class.

Declaration
public RecordEnumerator(CsvDataReader reader)
Parameters
CsvDataReader reader

The CsvDataReader to iterate over.

Exceptions
System.ArgumentNullException

reader is a null.

Properties

Current

Gets the current record.

Declaration
public readonly string[] Current { get; }
Property Value
String[]

Implements
IEnumerator<T>.Current

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Declaration
public void Dispose()
Implements
System.IDisposable.Dispose()

MoveNext()

Advances the enumerator to the next record of the CSV.

Declaration
public bool MoveNext()
Returns
Boolean

true if the enumerator was successfully advanced to the next record, false if the enumerator has passed the end of the CSV.

Implements
System.Collections.IEnumerator.MoveNext()

Reset()

Sets the enumerator to its initial position, which is before the first record in the CSV.

Declaration
public void Reset()
Implements
System.Collections.IEnumerator.Reset()

Explicit Interface Implementations

IEnumerator.Current

Gets the current record.

Declaration
readonly object IEnumerator.Current { get; }
Returns
Object

Implements
System.Collections.IEnumerator.Current

Extension Methods

AnnotationsExtensions.IsValid(Object)
Back to top Generated by DocFX