Class SimpleEnumerable<T>
- Namespace
- Ecng.Collections
- Assembly
- Ecng.Collections.dll
Represents a simple implementation of an enumerable that uses a factory function to create its enumerator.
public class SimpleEnumerable<T> : IEnumerable<T>, IEnumerable
Type Parameters
T
The type of elements in the enumerable.
- Inheritance
-
SimpleEnumerable<T>
- Implements
-
IEnumerable<T>
- Inherited Members
- Extension Methods
Constructors
SimpleEnumerable(Func<IEnumerator<T>>)
Represents a simple implementation of an enumerable that uses a factory function to create its enumerator.
public SimpleEnumerable(Func<IEnumerator<T>> createEnumerator)
Parameters
createEnumerator
Func<IEnumerator<T>>
Methods
GetEnumerator()
Returns an enumerator that iterates through the collection.
public IEnumerator<T> GetEnumerator()
Returns
- IEnumerator<T>
An IEnumerator<T> for the collection.