ImmutableHashSet.ToImmutableHashSet Method

Definition

Overloads

ToImmutableHashSet<TSource>(IEnumerable<TSource>)

Enumera una sequenza e produce un set di hash non modificabile del relativo contenuto.Enumerates a sequence and produces an immutable hash set of its contents.

ToImmutableHashSet<TSource>(ImmutableHashSet<TSource>.Builder)

Crea un set di hash non modificabile dal contenuto corrente del set del generatore.Creates an immutable hash set from the current contents of the builder's set.

ToImmutableHashSet<TSource>(IEnumerable<TSource>, IEqualityComparer<TSource>)

Enumera una sequenza, produce un set di hash non modificabile del relativo contenuto e usa l'operatore di confronto di uguaglianza specificato per il tipo di set.Enumerates a sequence, produces an immutable hash set of its contents, and uses the specified equality comparer for the set type.

ToImmutableHashSet<TSource>(IEnumerable<TSource>)

Enumera una sequenza e produce un set di hash non modificabile del relativo contenuto.Enumerates a sequence and produces an immutable hash set of its contents.

public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Immutable::ImmutableHashSet<TSource> ^ ToImmutableHashSet(System::Collections::Generic::IEnumerable<TSource> ^ source);
public static System.Collections.Immutable.ImmutableHashSet<TSource> ToImmutableHashSet<TSource> (this System.Collections.Generic.IEnumerable<TSource> source);
static member ToImmutableHashSet : seq<'Source> -> System.Collections.Immutable.ImmutableHashSet<'Source>
<Extension()>
Public Function ToImmutableHashSet(Of TSource) (source As IEnumerable(Of TSource)) As ImmutableHashSet(Of TSource)

Type Parameters

TSource

Tipo degli elementi nella sequenza.The type of the elements in the sequence.

Parameters

source
IEnumerable<TSource>

Sequenza da enumerare.The sequence to enumerate.

Returns

ImmutableHashSet<TSource>

Set di hash non modificabile che contiene gli elementi nella sequenza specificata.An immutable hash set that contains the items in the specified sequence.

ToImmutableHashSet<TSource>(ImmutableHashSet<TSource>.Builder)

Crea un set di hash non modificabile dal contenuto corrente del set del generatore.Creates an immutable hash set from the current contents of the builder's set.

public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Immutable::ImmutableHashSet<TSource> ^ ToImmutableHashSet(System::Collections::Immutable::ImmutableHashSet<TSource>::Builder ^ builder);
public static System.Collections.Immutable.ImmutableHashSet<TSource> ToImmutableHashSet<TSource> (this System.Collections.Immutable.ImmutableHashSet<TSource>.Builder builder);
static member ToImmutableHashSet : System.Collections.Immutable.ImmutableHashSet<'Source>.Builder -> System.Collections.Immutable.ImmutableHashSet<'Source>
<Extension()>
Public Function ToImmutableHashSet(Of TSource) (builder As ImmutableHashSet(Of TSource).Builder) As ImmutableHashSet(Of TSource)

Type Parameters

TSource

Tipo di elementi nel set di hash.The type of the elements in the hash set.

Parameters

builder
ImmutableHashSet<TSource>.Builder

Generatore da cui creare il set di hash non modificabile.The builder to create the immutable hash set from.

Returns

ImmutableHashSet<TSource>

Set di hash non modificabile che contiene il contenuto corrente nel set del generatore.An immutable hash set that contains the current contents in the builder's set.

ToImmutableHashSet<TSource>(IEnumerable<TSource>, IEqualityComparer<TSource>)

Enumera una sequenza, produce un set di hash non modificabile del relativo contenuto e usa l'operatore di confronto di uguaglianza specificato per il tipo di set.Enumerates a sequence, produces an immutable hash set of its contents, and uses the specified equality comparer for the set type.

public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Immutable::ImmutableHashSet<TSource> ^ ToImmutableHashSet(System::Collections::Generic::IEnumerable<TSource> ^ source, System::Collections::Generic::IEqualityComparer<TSource> ^ equalityComparer);
public static System.Collections.Immutable.ImmutableHashSet<TSource> ToImmutableHashSet<TSource> (this System.Collections.Generic.IEnumerable<TSource> source, System.Collections.Generic.IEqualityComparer<TSource> equalityComparer);
static member ToImmutableHashSet : seq<'Source> * System.Collections.Generic.IEqualityComparer<'Source> -> System.Collections.Immutable.ImmutableHashSet<'Source>
<Extension()>
Public Function ToImmutableHashSet(Of TSource) (source As IEnumerable(Of TSource), equalityComparer As IEqualityComparer(Of TSource)) As ImmutableHashSet(Of TSource)

Type Parameters

TSource

Tipo degli elementi nella sequenza.The type of the elements in the sequence.

Parameters

source
IEnumerable<TSource>

Sequenza da enumerare.The sequence to enumerate.

equalityComparer
IEqualityComparer<TSource>

Oggetto da usare per verificare l'uguaglianza degli oggetti nel set.The object to use for comparing objects in the set for equality.

Returns

ImmutableHashSet<TSource>

Set di hash non modificabile che contiene gli elementi nella sequenza specificata e usa l'operatore di confronto di uguaglianza specificato.An immutable hash set that contains the items in the specified sequence and uses the specified equality comparer.

Applies to