Enumerable.intersect Method

Produces the set intersection of two sequences optionally using an equality comparer to compare values.
 
 
Static This method is static.

Parameters

first

Type: IEnumerable
An enumerable whose distinct elements that also appear in second will be returned.
second

Type: IEnumerable
An enumerable whose distinct elements that also appear in the first sequence will be returned.
equalityComparer

Type: IEqualityComparer
An equality comparer to compare values.
Optional: True

Return Value


Type: IEnumerable
A sequence that contains the elements that form the set intersection of two sequences.