Collection Intersection Example

.NET has the ability to compare two or more collection types to see what elements they have in common. The Intersect and IntersectWith methods. In this example I’ll be using these two methods along with the default string comparer and a custom string comparer.

Continue reading

Advertisements