I have a list "A" and a generic list "B". I need to find all the items of "A" those are not in "B" with multiple condition.
List "A":
EXWORK
CENTAGES
PREMIUM
List "B":
PARTICULARS CATAGORY DETAIL
EXWORK ERECTION ABC
CENTAGES ERECTION ABC
PREMIUM SUPPLY ABC
For this I use following code:
var value = A.Where(a => B.All(b => b.CATAGORY == "SUPPLY" && b.PARTICULARS!=a));
but this return the value "Premium" also whereas it shouldn't be. I am not figuring out where I am making mistake.
My Desired result is:
EXWORK
CENTAGES