Table of Contents

Class

Namespace
CoreFramework

Provides extension methods for enumerator manipulation.

public static class EnumeratorExtensions
Inheritance
object

Methods

ToEnumerable<T>(IEnumerator<T>)

Converts an IEnumerator to an IEnumerable.

public static IEnumerable<T> ToEnumerable<T>(this IEnumerator<T> e)

Parameters

e IEnumerator<T>

An instance of IEnumerator.

Returns

IEnumerable<T>

An IEnumerable with the same elements as the input instance.

Type Parameters

T