I need to write my own version of the Except method, or at least somehow modify how the LINQ one works. I'm comparing to large lists of custom objects, and need connect matches from list A to list B. I think Excepts hash table building is the fastest way to do the comparison, but the method will only return the non matches. I'm thinking if I can take a peek at how the method actually works, I can add the functionality I need.
Does anyone know where this resource is located?
.NET source code is open source now. You can check it on GitHub. The LINQ source is here: https://github.com/dotnet/runtime/tree/master/src/libraries/System.Linq
Also of note: How does LINQ Except work?
You can find most of the BCL source on the Reference Source site.
It sounds from your description that you should take a look at Enumerable.Intersect, however.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With