Iterators in C#: yield return
Sequences that produce values only when someone asks for them — and the surprises that come with it.
Start LearningFundamentals
3 modules: What foreach Really Does, Your First yield return, Nothing Runs Until You Ask.
Use-case Modules
2 modules: Every foreach Starts Over, Sequences Without End.
Production Ready
2 modules: Where yield Is Not Allowed, Iterators That Wait.