C# Class Monospace.NoThreads.IteratorCoroutines.IteratorExample

Mostra file Open project: MindTouch/Monospace.NoThreads

Public Methods

Method Description
Produce ( ) : IEnumerator

Enumerator methods that contain at least one yield do not actually return a value of IEnumerator but are converted by the compiler into a statemachine at call time which does not execute the method until the first call to MoveNext

Private Methods

Method Description
Run ( ) : void

Method Details

Produce() public method

Enumerator methods that contain at least one yield do not actually return a value of IEnumerator but are converted by the compiler into a statemachine at call time which does not execute the method until the first call to MoveNext
public Produce ( ) : IEnumerator
return IEnumerator