Table of Contents

Class ExcelSheetList<TSheet>

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

The sheets of a workbook, in workbook order. Indexing or enumerating the list opens nothing.

public sealed class ExcelSheetList<TSheet> : IReadOnlyList<TSheet>, IReadOnlyCollection<TSheet>, IEnumerable<TSheet>, IEnumerable

Type Parameters

TSheet

The workbook's sheet type.

Inheritance
ExcelSheetList<TSheet>
Implements
IEnumerable<TSheet>
Inherited Members

Properties

Count

Gets the number of sheets.

public int Count { get; }

Property Value

int

this[int]

Gets the sheet at the given zero-based index.

public TSheet this[int index] { get; }

Parameters

index int

The zero-based sheet index. Must be within [0, Count).

Property Value

TSheet

Exceptions

ArgumentOutOfRangeException

index is outside [0, Count).

Methods

GetEnumerator()

Gets an enumerator over the sheets that allocates nothing.

public ArraySegment<TSheet>.Enumerator GetEnumerator()

Returns

ArraySegment<TSheet>.Enumerator