September 2013
Beginner
292 pages
6h 19m
English
These previous array, List, and Dictionary examples showed how to get data into them, and how they store data. It's now time to learn how to loop through the data to retrieve the needed data.
Here are some common ways to perform loops:
foreach loopfor loopwhile loopWhen working with Collections such as an array, a list or dictionary, the preferred way to cycle through the elements and retrieve data is to use the foreach loop.