Remove items from list that appears in another list by ID

I tried many options and stopped on this one:

lst1.RemoveAll(itemFromLst1 => lst2.Any(itemFromLst2 => itemFromLst2.ID == itemFromLst1.ID));

Comments

Popular posts from this blog

Decimal number issue from server to client. Wow! Didn't expect this @_@

Error starting SQL Server 2017 service. Error Code 3417 - Fixed