Cover Page by Paul Kimmel

Safari, the world’s most comprehensive technology and business learning platform.

Find the exact information you need to solve a problem on the fly, or go deeper to master the technologies and skills you need to succeed

Start Free Trial

No credit card required

O'Reilly logo

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 ...

Find the exact information you need to solve a problem on the fly, or go deeper to master the technologies and skills you need to succeed

Start Free Trial

No credit card required