Table of Contents

Class XlsbWorkbook.Enumerator

Namespace
ExcelReader.Core.Reader.Xlsb
Assembly
ExcelReader.Core.dll

Forward-only enumerator over an XlsbWorkbook sheet's rows.

[SuppressMessage("Design", "CA1034:Nested types should not be visible", Justification = "Public nested enumerator is the standard foreach pattern.")]
public sealed class XlsbWorkbook.Enumerator : PooledStreamRowEnumerator, IExcelRowEnumerator, IDisposable, IAsyncDisposable
Inheritance
PooledStreamRowEnumerator
XlsbWorkbook.Enumerator
Implements
Inherited Members

Remarks

Streams the underlying binary sheetN.bin entry through a refillable pooled buffer; Biff12RecordReader framing guarantees that a partial record at the buffer boundary is detected and retried after the next fill.

Properties

Current

Gets the row at the enumerator's current position. Only valid after a call to MoveNext() or MoveNextAsync() has returned true.

public Row Current { get; }

Property Value

Row

Methods

MoveNext()

Advances the enumerator to the next row, reading synchronously.

public bool MoveNext()

Returns

bool

true if a row was read; false if the sheet is exhausted.

MoveNextAsync()

Advances the enumerator to the next row, reading asynchronously.

public ValueTask<bool> MoveNextAsync()

Returns

ValueTask<bool>

true if a row was read; false if the sheet is exhausted.