iteration c#

C#
		for (int index = 0; index < days.Length; index++)
        {
            // Yield each day of the week.
            yield return days[index];
        }
Source

Also in C#: