Alternative Implementation of the C# Iterator Blocks

By: Horatiu Jula


We propose an alternative implementation of the C# iterator blocks in terms of standard C# constructions. This implementation is based on syntactic sugar, so as the implementation described in the C# specification. Unlike the standard implementation, the syntactically transformed code that implements the iterator blocks is executed in a separate thread in a server-like manner by an enumerator object that handles access requests for its elements.

Cite as:

Horatiu Jula, “Alternative Implementation of the C# Iterator Blocks”, Journal of Object Technology, Volume 5, no. 7 (September 2006), pp. 33-41, doi:10.5381/jot.2006.5.7.a1.

PDF | HTML | DOI | BiBTeX | Tweet this | Post to CiteULike | Share on LinkedIn