Summary
Exposes an IEnumerable<T> as an IList<T>, enabling buffering of and indexing into the elements
generated by the enumerable, while still ensuring that the enumerable is enumerated in a lazy fashion,
only as required, and at most once. This collection is read-only, and all write-related methods throw a
NotSupportedException.
Generic type parameters
T | Type of the elements in the enumeration. |
Constructors
Instance methods
bool | | Determines whether an element is in the list. |
void | CopyTo(T[] array, int arrayIndex) |
Copies all elements to the specified array starting at the specified index.
|
void | |
Disposes of the enumerable's enumerator, if one is held at the moment.
|
IEnumerator<T> | |
Returns an enumerator for the collection. Warning: This enumerates the underlying collection completely before returning.
|
bool | |
Checks whether the specified index is a valid index, i.e. not out-of-range.
|
int | | Returns the index of the specified item, or -1 if the item is not found. |
Instance properties
int | |
Gets the number of elements. Note that this method will have to enumerate the underlying
enumerable in full.
|
bool | |
Returns true.
|
T | |
Gets the item at the specified index.
|