[Extension()] public static HashSet<T> ToHashSetEx<T>( IEnumerable<T> seq, IEqualityComparer<T> equalityComparer )
Parameters
- seq
- An IEnumerable<T> to create an hashset from.
- equalityComparer
- The equality comparer on elements.
Type Parameters
- T
- The type of the elements of seq.
Return Value
An hashset that contains the elements from the input sequence.