Enumerators and Iterators

  • Daniel M. Solis


In Chapter 12, you saw that you can use a f oreach statement to cycle through the elements of an array. In this chapter, you’ll take a closer look at arrays and see why they can be processed by f oreach statements. You’ll also look at how you can add this capability to your own user-defined classes, using iterators.


State Machine Yield Break Return Type Method Return Class Program 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Daniel M. Solis 2012

Authors and Affiliations

  • Daniel M. Solis

There are no affiliations available

Personalised recommendations