yield return: Using .NET’s State Machine Generator
In This Chapter
Understanding How yield return Works
Using yield return and yield break
“Always bear in mind that your own resolution to succeed is more important than any one thing.”
Just a few short years ago, developers had to inherit from
CollectionBase to implement strongly typed collections. If you wanted to define custom types, instead of using DataSets, then this was the way to go. With the introduction of generics, you no longer have ...