ImmutableHashSet::ToImmutableHashSet<TSource> Method (IEnumerable<TSource>^)
Enumerates a sequence and produces an immutable hash set of its contents.
Assembly: System.Collections.Immutable (in System.Collections.Immutable.dll)
public: generic<typename TSource> [ExtensionAttribute] static ImmutableHashSet<TSource>^ ToImmutableHashSet( IEnumerable<TSource>^ source )
Parameters
- source
-
Type:
System.Collections.Generic::IEnumerable<TSource>^
The sequence to enumerate.
Return Value
Type: System.Collections.Immutable::ImmutableHashSet<TSource>^An immutable hash set that contains the items in the specified sequence.
Type Parameters
- TSource
The type of the elements in the sequence.
Show: