ImmutableHashSet.ToImmutableHashSet ImmutableHashSet.ToImmutableHashSet ImmutableHashSet.ToImmutableHashSet ImmutableHashSet.ToImmutableHashSet Method

Definición

Sobrecargas

ToImmutableHashSet<TSource>(IEnumerable<TSource>) ToImmutableHashSet<TSource>(IEnumerable<TSource>) ToImmutableHashSet<TSource>(IEnumerable<TSource>) ToImmutableHashSet<TSource>(IEnumerable<TSource>)

Enumera una secuencia y genera un conjunto hash inmutable de su contenido.Enumerates a sequence and produces an immutable hash set of its contents.

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

Enumera una secuencia, genera un conjunto hash inmutable de su contenido y usa el comparador de igualdad especificado para este tipo de conjunto.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>) ToImmutableHashSet<TSource>(IEnumerable<TSource>) ToImmutableHashSet<TSource>(IEnumerable<TSource>) ToImmutableHashSet<TSource>(IEnumerable<TSource>)

Enumera una secuencia y genera un conjunto hash inmutable de su contenido.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)

Parámetros de tipo

TSource

Tipo de los elementos de la secuencia.The type of the elements in the sequence.

Parámetros

source
IEnumerable<TSource>

Secuencia que se va a enumerar.The sequence to enumerate.

Devoluciones

ImmutableHashSet<TSource>

Conjunto hash inmutable que contiene los elementos en la secuencia especificada.An immutable hash set that contains the items in the specified sequence.

ToImmutableHashSet<TSource>(ImmutableHashSet<TSource>) ToImmutableHashSet<TSource>(ImmutableHashSet<TSource>) ToImmutableHashSet<TSource>(ImmutableHashSet<TSource>)

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>

Parámetros de tipo

TSource

Parámetros

builder
ImmutableHashSet<TSource>.Builder

Devoluciones

ImmutableHashSet<TSource>

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

Enumera una secuencia, genera un conjunto hash inmutable de su contenido y usa el comparador de igualdad especificado para este tipo de conjunto.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)

Parámetros de tipo

TSource

Tipo de los elementos de la secuencia.The type of the elements in the sequence.

Parámetros

source
IEnumerable<TSource>

Secuencia que se va a enumerar.The sequence to enumerate.

equalityComparer
IEqualityComparer<TSource>

Objeto que se va a utilizar para comparar la igualdad de los objetos del conjunto.The object to use for comparing objects in the set for equality.

Devoluciones

ImmutableHashSet<TSource>

Conjunto hash inmutable que contiene los elementos en la secuencia especificada y usa el comparador de igualdad especificado.An immutable hash set that contains the items in the specified sequence and uses the specified equality comparer.

Se aplica a