Linq equivalent of foreach for IEnumerable

Posted by tags2k on Stack Overflow See other posts from Stack Overflow or by tags2k
Published on 2008-10-14T09:56:09Z Indexed on 2010/06/03 16:44 UTC
Read the original article Hit count: 201

Filed under:
|
|

I'd like to do the equivalent of the following in LINQ, but I can't figure out how:

IEnumerable<Item> items = GetItems();
items.ForEach(i => i.DoStuff());

What is the real syntax?

© Stack Overflow or respective owner

Related posts about LINQ

Related posts about foreach