Class Iterator
Provides helper methods for working with IIterator<T>.
Inherited Members
Namespace: Recore.Collections.Generic
Assembly: Recore.dll
Syntax
public static class Iterator
Methods
| Improve this Doc View SourceFromEnumerable<T>(IEnumerable<T>)
Retrieves an IIterator<T> for the collection.
Declaration
public static IIterator<T> FromEnumerable<T>(IEnumerable<T> source)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<T> | source |
Returns
Type | Description |
---|---|
IIterator<T> |
Type Parameters
Name | Description |
---|---|
T |
FromEnumerator<T>(IEnumerator<T>)
Converts an IEnumerator<T> to an IIterator<T>.
Declaration
public static IIterator<T> FromEnumerator<T>(IEnumerator<T> enumerator)
Parameters
Type | Name | Description |
---|---|---|
IEnumerator<T> | enumerator |
Returns
Type | Description |
---|---|
IIterator<T> |
Type Parameters
Name | Description |
---|---|
T |