Share via


ImmutableHashSet.CreateRange Método

Definição

Sobrecargas

CreateRange<T>(IEnumerable<T>)

Cria um novo conjunto de hash imutável previamente preenchido com os itens especificados.

CreateRange<T>(IEqualityComparer<T>, IEnumerable<T>)

Cria um novo conjunto de hash imutável que contém os itens especificados e usa o comparador de igualdade especificado para o tipo de conjunto.

CreateRange<T>(IEnumerable<T>)

Origem:
ImmutableHashSet.cs
Origem:
ImmutableHashSet.cs
Origem:
ImmutableHashSet.cs

Cria um novo conjunto de hash imutável previamente preenchido com os itens especificados.

public:
generic <typename T>
 static System::Collections::Immutable::ImmutableHashSet<T> ^ CreateRange(System::Collections::Generic::IEnumerable<T> ^ items);
public static System.Collections.Immutable.ImmutableHashSet<T> CreateRange<T> (System.Collections.Generic.IEnumerable<T> items);
static member CreateRange : seq<'T> -> System.Collections.Immutable.ImmutableHashSet<'T>
Public Function CreateRange(Of T) (items As IEnumerable(Of T)) As ImmutableHashSet(Of T)

Parâmetros de tipo

T

O tipo de itens armazenados pela coleção.

Parâmetros

items
IEnumerable<T>

Os itens a serem adicionados ao conjunto de hash.

Retornos

O novo conjunto de hash imutável que contém os itens especificados.

Aplica-se a

CreateRange<T>(IEqualityComparer<T>, IEnumerable<T>)

Origem:
ImmutableHashSet.cs
Origem:
ImmutableHashSet.cs
Origem:
ImmutableHashSet.cs

Cria um novo conjunto de hash imutável que contém os itens especificados e usa o comparador de igualdade especificado para o tipo de conjunto.

public:
generic <typename T>
 static System::Collections::Immutable::ImmutableHashSet<T> ^ CreateRange(System::Collections::Generic::IEqualityComparer<T> ^ equalityComparer, System::Collections::Generic::IEnumerable<T> ^ items);
public static System.Collections.Immutable.ImmutableHashSet<T> CreateRange<T> (System.Collections.Generic.IEqualityComparer<T> equalityComparer, System.Collections.Generic.IEnumerable<T> items);
public static System.Collections.Immutable.ImmutableHashSet<T> CreateRange<T> (System.Collections.Generic.IEqualityComparer<T>? equalityComparer, System.Collections.Generic.IEnumerable<T> items);
static member CreateRange : System.Collections.Generic.IEqualityComparer<'T> * seq<'T> -> System.Collections.Immutable.ImmutableHashSet<'T>
Public Function CreateRange(Of T) (equalityComparer As IEqualityComparer(Of T), items As IEnumerable(Of T)) As ImmutableHashSet(Of T)

Parâmetros de tipo

T

O tipo de itens armazenados na coleção.

Parâmetros

equalityComparer
IEqualityComparer<T>

O objeto a ser usado para a comparação dos objetos no conjunto quanto à igualdade.

items
IEnumerable<T>

Os itens adicionados à coleção antes que a imutabilidade é aplicada.

Retornos

O novo conjunto de hash imutável.

Aplica-se a