in line linq statement on foreach c# code example Example: foreach c# linq example items.ToList().ForEach(i => i.DoStuff());