[Extension()] public static IEnumerable<T> Intersect<T>( HashSet<T> hashset, HashSet<T> otherHashset )
Parameters
- hashset
 - An hashset of elements whose distinct elements that also appear in otherHashset will be returned.
 - otherHashset
 - An hashset of elements whose distinct elements that also appear in hashset will be returned.
 
Type Parameters
- T
 - The code element type of the elements of the hashset and the sequence.
 
Return Value
A sequence that contains the elements that form the set intersection of both hashsets.
