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

代码如下:

 1 list.FindAll(a => a.PhoneNumber == item.Mobile).ForEach(a => a.ID = item.Customer_Id) 

posted @ 2020-12-21 15:14  jukuk1  阅读(2080)  评论(0编辑  收藏  举报