Abstract
In Chapter 14, you saw that you can use a foreach 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 foreach statements. You’ll also look at how you can add this capability to you own user-defined classes. Later, I’ll discuss the use of iterators.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2006 Daniel Solis
About this chapter
Cite this chapter
(2006). Enumerators and Iterators. In: Illustrated C# 2005. Apress. https://doi.org/10.1007/978-1-4302-0435-0_20
Download citation
DOI: https://doi.org/10.1007/978-1-4302-0435-0_20
Publisher Name: Apress
Print ISBN: 978-1-59059-723-1
Online ISBN: 978-1-4302-0435-0
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)