C# Class UnityContrib.UnityEngine.IEnumeratorEx

Provides helper methods for working with the T:System.Collections.IEnumerator class.
Show file Open project: UnityContrib/framework

Public Methods

Method Description
Recursive ( this enumerator, int maxRecursion = 7, int currentRecursion ) : IEnumerator

Enumerates the specified enumerator recursively. If the enumerator returns another T:System.Collections.IEnumerator that will also be enumerated an so forward.

Method Details

Recursive() public static method

Enumerates the specified enumerator recursively. If the enumerator returns another T:System.Collections.IEnumerator that will also be enumerated an so forward.
public static Recursive ( this enumerator, int maxRecursion = 7, int currentRecursion ) : IEnumerator
enumerator this /// The to enumerate. ///
maxRecursion int /// The maximum number of recursion levels before aborting. ///
currentRecursion int /// The current number of recursion levels. ///
return IEnumerator