How do I write a for each lambda expression to iterate over a numeric range in C#?
<p>I want to write something like:</p>

<p>(0 .. 7).ForEach(i => SomeMethod(i))</p>

<p>but either I can't find the correct syntax, or this isn't possible in C#. If it can be done, what is the correct syntax please?</p>
