我想在LINQ中做以下的等价物,但我不知道如何:
IEnumerable<Item> items = GetItems();
items.ForEach(i => i.DoStuff());
什么是真正的语法?
相似问题