O'Reilly logo

LINQ Unleashed for C# by Paul Kimmel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 4yield return: Using .NET’s State Machine Generator

In This Chapter

Image Understanding How yield return Works

Image Using yield return and yield break

“Always bear in mind that your own resolution to succeed is more important than any one thing.”

—Abraham Lincoln

Just a few short years ago, developers had to inherit from ReadOnlyCollectionBase or 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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required