C#修改批量修改符合特定条件的LIST中对象属性

 people.FindAll(c => c.Age == 12).ForEach(c=>c.Name="ff");

猜你喜欢

转载自blog.csdn.net/qq_40098572/article/details/103196170