Partager via


CmdletHelper.ToIEnumerable<T>(IEnumerator<T>) Method

Definition

Converts IEnumerator to IEnumerable

public static System.Collections.Generic.IEnumerable<T> ToIEnumerable<T> (this System.Collections.Generic.IEnumerator<T> enumerator);
static member ToIEnumerable : System.Collections.Generic.IEnumerator<'T> -> seq<'T>
<Extension()>
Public Iterator Function ToIEnumerable(Of T) (enumerator As IEnumerator(Of T)) As IEnumerable(Of T)

Type Parameters

T

Generic Type

Parameters

enumerator
IEnumerator<T>

Enumerator to be converted

Returns

IEnumerable collection

Applies to