list iterator c# code example
Example: iteration c#
for (int index = 0; index < days.Length; index++)
{
// Yield each day of the week.
yield return days[index];
}
for (int index = 0; index < days.Length; index++)
{
// Yield each day of the week.
yield return days[index];
}