Table of Contents

Struct CsvParser<T>.AsyncEnumerator

Namespace
FlameCsv.Reading
Assembly
FlameCsv.Core.dll

Enumerator for raw CSV record fields.

public readonly struct CsvParser<T>.AsyncEnumerator : IAsyncEnumerator<CsvFieldsRef<T>>, IAsyncDisposable
Implements

Properties

Current

Current record.

public CsvFieldsRef<T> Current { get; }

Property Value

CsvFieldsRef<T>

Methods

DisposeAsync()

Disposes the parser.

public ValueTask DisposeAsync()

Returns

ValueTask

MoveNextAsync()

Attempts to read the next record.

public ValueTask<bool> MoveNextAsync()

Returns

ValueTask<bool>

true if a record was read; otherwise, false.

UnsafeGetFields()

Returns a read-only reference to the field value that Current is constructed from.

[EditorBrowsable(EditorBrowsableState.Never)]
public ref readonly CsvFields<T> UnsafeGetFields()

Returns

CsvFields<T>