MoreEnumerableToHashSetTSource(IEnumerableTSource) Method
Returns a
HashSetT of the source items using the default equality
comparer for the type.
Namespace: MoreLinqAssembly: MoreLinq (in MoreLinq.dll) Version: 4.0.0+092a40d82a1b280568ffa006d9a210bdec0792cd
public static HashSet<TSource> ToHashSet<TSource>(
IEnumerable<TSource> source
)
Public Shared Function ToHashSet(Of TSource) (
source As IEnumerable(Of TSource)
) As HashSet(Of TSource)
public:
generic<typename TSource>
static HashSet<TSource>^ ToHashSet(
IEnumerable<TSource>^ source
)
static member ToHashSet :
source : IEnumerable<'TSource> -> HashSet<'TSource>
- source IEnumerableTSource
- Source sequence
- TSource
- Type of elements in source sequence.
HashSetTSourceA hash set of the items in the sequence, using the default equality comparer.
This evaluates the input sequence completely.