contacts.ForEach(c => { c.ID = 0; c.GroupID = 0; c.CompanyID = 0; });
It doesn’t have anything to do with LINQ per se; it’s just a simple anonymous method written in lambda syntax passed to the List<T>.ForEach function (which existed since 2.0, before LINQ).