foreach go to method c# linq code example Example: foreach c# linq example items.ToList().ForEach(i => i.DoStuff());