ImmutableHashSet.ToImmutableHashSet Metoda

Definicja

Przeciążenia

ToImmutableHashSet<TSource>(IEnumerable<TSource>)

Wylicza sekwencję i tworzy niezmienny zestaw skrótów jego zawartości.

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

Tworzy niezmienny zestaw skrótów z bieżącej zawartości zestawu konstruktora.

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

Wylicza sekwencję, tworzy niezmienny zestaw skrótów jego zawartości i używa określonego porównania równości dla typu zestawu.

ToImmutableHashSet<TSource>(IEnumerable<TSource>)

Wylicza sekwencję i tworzy niezmienny zestaw skrótów jego zawartości.

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)

Parametry typu

TSource

Typ elementów w sekwencji.

Parametry

source
IEnumerable<TSource>

Sekwencja do wyliczenia.

Zwraca

ImmutableHashSet<TSource>

Niezmienny zestaw skrótów zawierający elementy w określonej sekwencji.

Dotyczy

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

Tworzy niezmienny zestaw skrótów z bieżącej zawartości zestawu konstruktora.

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)

Parametry typu

TSource

Typ elementów w zestawie skrótów.

Parametry

builder
ImmutableHashSet<TSource>.Builder

Konstruktor do utworzenia niezmiennego skrótu ustawionego na podstawie.

Zwraca

ImmutableHashSet<TSource>

Niezmienny zestaw skrótów zawierający bieżącą zawartość w zestawie konstruktora.

Dotyczy

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

Wylicza sekwencję, tworzy niezmienny zestaw skrótów jego zawartości i używa określonego porównania równości dla typu zestawu.

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);
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)

Parametry typu

TSource

Typ elementów w sekwencji.

Parametry

source
IEnumerable<TSource>

Sekwencja do wyliczenia.

equalityComparer
IEqualityComparer<TSource>

Obiekt używany do porównywania obiektów w zestawie pod kątem równości.

Zwraca

ImmutableHashSet<TSource>

Niezmienny zestaw skrótów zawierający elementy w określonej sekwencji i używa określonego porównania równości.

Dotyczy