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