FakeList<T> Class
Implements an indexer through an IEnumerator<T>.
public class FakeList<T>Type parameters
T
Constructors
| Name | Description |
|---|---|
| FakeList(IEnumerable<T>) | Initializes a new instance of FakeList<T>. |
| FakeList(IEnumerator<T>) | Initializes a new instance of FakeList<T>. |
FakeList overloads
FakeList(IEnumerable<T>)
FakeList.csInitializes a new instance of FakeList<T>.
public FakeList(IEnumerable<T> collection)Parameters
collectionIEnumerable<T>- The collection to use to implement the indexer.
FakeList(IEnumerator<T>)
FakeList.csInitializes a new instance of FakeList<T>.
public FakeList(IEnumerator<T> collection)Parameters
collectionIEnumerator<T>- The enumerator to use to implement the indexer.
Indexers
| Name | Description |
|---|---|
| this[int] | Gets the element at the specified index. |