CmdletHelper.ToIEnumerable<T>(IEnumerator<T>) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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<T>
IEnumerable collection