Table of Contents

Class XlsWorkbook.Enumerator

Namespace
ExcelReader.Core.Reader.Xls
Assembly
ExcelReader.Core.dll

Enumerates the rows of a single worksheet in an XlsWorkbook, supporting both synchronous and asynchronous iteration.

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

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

Dispose()

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

public void Dispose()

DisposeAsync()

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

public ValueTask DisposeAsync()

Returns

ValueTask

A task that represents the asynchronous dispose operation.

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.