Three set-like LINQ methods: Intersect, Union, and Except

from blog Just Some Code, | ↗ original
So far we have covered some of the most common LINQ methods. This time let’s cover three LINQ methods that work like set operations: Intersect, Union, and Except. Like the Aggregate method, we don’t use these methods every day, but they will come in handy from time to time. 1. Intersect Intersect() finds the common elements between two...