[Solved] How can I merge this two bits of code [closed]


Do you want something like this?

genOutList= (
                  from i in genOutList
                  where !genAccList.Any(x=>x.Contract==i.Contract)
                  select i
             ).ToList();

Or

genOutList.RemoveAll(x=>genAccList.Any(i=>i.Contract==x.Contract));

0

solved How can I merge this two bits of code [closed]