youniss2013 / 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 8 years ago

GoogleCodeExporter commented 8 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 8 years ago
Or ExceptBy operator

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

GoogleCodeExporter commented 8 years ago
This issue has been migrated to:
https://github.com/MoreLINQ/morelinq/issues/63
The conversation continues there.
DO NOT post any further comments to the issue tracker on Google Code as it is 
shutting down.
You can also just subscribe to the issue on GitHub to receive notifications of 
any further development.

Original comment by azizatif on 21 Aug 2015 at 6:55