mesotron / morelinq

Automatically exported from code.google.com/p/morelinq
Apache License 2.0
0 stars 0 forks source link

IntersectBy Operator #63

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Similar to DistinctBy but with the functionality of Intersect 

so Something like this:

var emails = GetAllEmails();
var uniqueEmails = emails.DistinctBy(x => x.Email).ToList();
var duplicates = emails.IntersectBy(uniqueEmails, x => x.EmailAddress);

Thanks

Original issue reported on code.google.com by jal...@gmail.com on 14 Feb 2011 at 9:48

GoogleCodeExporter commented 9 years ago
Or ExceptBy operator

Original comment by jal...@gmail.com on 14 Feb 2011 at 10:45