Possible Duplicate:
How do foreach loops work in C#?
Just like classic iterative statments like for, while or do-while, is foreach loop is a new loop statment in c#? or in other languages such as php
OR
behind the scenes it translate our code to for, while or do-while loop.
The foreach construction is equivalent to:
Note that this version is the non generic one. The compiler can handle
IEnumerator<T>.