how to write an iterator in c# to start from any node 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];
}