Class XlsWorkbook.Enumerator
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
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
MoveNextAsync()
Advances the enumerator to the next row, reading asynchronously.
public ValueTask<bool> MoveNextAsync()