I’ve 2 list collections in my C# app..A and B.
Both the collections have customer object which has Id and Name attributes.Typically, A has more items than B.
Using Linq,I want to return only those customers whose Id is in A but not in B.
How do I do this?
There are multiple approaches to take. The cleanest approach is to use the
Exceptextension method if you have overridenEqualsandGetHashCode. If you have not, there are other options.…