Iterators.

Flatten(IEnumerator) Method

Summary

Yields a flat sequence of elements.

Syntax

public static IEnumerator Flatten(IEnumerator iterator)

Remarks

Yields a flat sequence of elements. Any System.Collections.IEnumerable or System.Collections.IEnumerator found in the original sequence is recursively flattened.

Parameters

Name Type Description
iterator IEnumerator original sequence

Return Value

Type Description
IEnumerator