List<MyObject> myObject = new List<MyObject>(); myObject.ForEach(w => { w.字段1=123; if (true)//条件 { w.字段2= 654; } //等等 });