Skip to content

Glossary: C# Beyond the Basics

iterator

Also written: yield return

A method that hands back items one at a time with `yield return`, pausing between items. Like `Where`, it is deferred and runs only when something walks through its result.

Where the book teaches it

Related terms

deferred executionIEnumerable<T>extension method