title: C# Syntax - Example of a Lambda Expression - ForEach() over Generic List
body: <p>First, I know there are methods off of the generic <code>List&lt;&gt;</code> class already in the framework do iterate over the <code>List&lt;&gt;</code>.</p>
  
  <p>But as an example, what is the correct syntax to write a ForEach method to iterate over each object of a <code>List&lt;&gt;</code>, and do a <code>Console.WriteLine(object.ToString())</code> on each object.
  Something that takes the <code>List&lt;&gt;</code> as the first argument and the lambda expression as the second argument.</p>
  
  <p>Most of the examples I have seen are done as extension methods or involve LINQ. I'm looking for a plain-old method example.</p>