Module 1: What foreach Really Does
The foreach protocol
A quick multiple-choice check before you move on. Answer every question, then submit to see how you did.
1.In what order does foreach call the enumerator members?
2.Must a type implement IEnumerable to be used in a foreach?
3.Why is a hand-written enumerator so much longer than the idea it expresses?
Answer every question to submit.