ArrayEnumerable.intersect Method

Produces the set intersection of two sequences optionally using an equality comparer to compare values.
 

Parameters

second

Type: IEnumerable
An enumerable whose distinct elements that also appear in this 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.