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