comparing two List<>

后端 未结 4 1086
栀梦
栀梦 2021-01-24 06:16

i have gridview control with a checkbox on it

When i hit on save button i able to find the checkbox which have been checked and i able to do it so far so good but the pr

4条回答
  •  孤城傲影
    2021-01-24 07:12

    here is how you would do:

    List found = EmployeeListFromDB.FindAll(a=>!selectedEmployee.Exists(b=>a.Id == b.Id));
    

    thats it...

提交回复
热议问题