linq foreach c# more than 1 code example Example: c# list foreach lambda multiple actions list.ForEach(i => { i.a = "hello!"; i.b = 99; });