Bummer! This is just a preview. You need to be signed in with a Basic account to view the entire video.
Start a free Basic trialto watch this video
Foreach loops use enumerators (AKA iterators) to loop through a collection. The magical yield keyword makes it easy to create enumerators.
You need to sign up for Treehouse in order to download course files.
I forgot my password