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