Chapter 19. Enumerating collections

After completing this chapter, you will be able to:

Chapter 10 and Chapter 18 show you about arrays and collection classes for holding sequences or sets of data. Chapter 10 also details the foreach statement that you can use for stepping through, or iterating over, the elements in a collection. In these chapters, you use the foreach statement as a quick and convenient way of accessing the contents of an array or collection, but now it is time to learn a little more about how this statement actually works. This topic becomes ...

Get Microsoft Visual C# 2013 Step by Step now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.