static void PrintSeries(IIndexableSeries indexSeries) { indexSeries.Reset(); for (int i = 0; i < 10; i++) { Console.Write(indexSeries.GetCurrent() + " "); indexSeries.MoveNext(); } }
static void PrintSeries(IIndexableSeries series) { series.Reset(); for (int i = 0; i < 5; i++) { Console.WriteLine(series[i]); series.MoveNext(); } }
static void PrintSeries(IIndexableSeries series) { series.Reset(); for (int i = 0; i < 10; i++) { series.GetCurrent(); Console.Write(series[i] + " "); series.MoveNext(); } Console.WriteLine(); }