First, I know there are methods off of the generic List<> class already in the framework do iterate over the List<>.
List<>
But as an
The above could also be written with less code as:
new List(items).ForEach( i => Console.WriteLine(i) );
This creates a generic list and populates it with the IEnumerable and then calls the list objects ForEach.