i'm having 2 lists(list1 & list2) , want records in list1 not in list2.
how can achieve using linq expression in c#
if both list contains comparable objects job:
var newlist = list1.except(list2); otherwise may need use custom iequalitycomparer desired results:
var newlist = list1.except(list2, new yourcustomcomparer());
Comments
Post a Comment