static void PrintSeries(IIndexable mySeries) { mySeries.Reset(); for (int i = 0; i < 10; ++i) { Console.Write(mySeries.GetCurrent() + " "); mySeries.MoveNext(); } }