PreviousNext

Essential .NET - Understanding C# foreach Internals and Custom Iterators with yield

by bill-s, 2017-04-07T23:05:54.000Z

This month I’m going to explore the internals of a core construct of C# that we all program with frequently—the foreach statement. Given an understanding of the foreach internal behavior, you can then explore implementing the foreach collection interfaces using the yield statement, as I’ll explain.

Read More