I'm getting started with C# 3.0 and LINQ, and I can't find a feature that to me is obvious, it's gotta be there.
I have an Enumerable, and I want to execute something for each instance of it. Something like...
string[] Names = ...; Names.each(s => Console.Writeline(s));
or
Names.each(s => GenHTMLOutput(s));
// (where GenHTMLOutput cannot for some reason receive the enumerable itself as a parameter)
Kind of like .Select() but for doing something instead of returning something.
I did try .Select(s=> { Console.WriteLine(s); return s; }), but it wasn't printing anything.