Compartir vía


ImmutableHashSet.CreateRange Método

Definición

Sobrecargas

CreateRange<T>(IEnumerable<T>)

Crea un nuevo conjunto hash inmutable completado con los elementos especificados.

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

Crea un nuevo conjunto hash inmutable que contiene los elementos especificados y usa el comparador de igualdad especificado para el tipo de conjunto.

CreateRange<T>(IEnumerable<T>)

Source:
ImmutableHashSet.cs
Source:
ImmutableHashSet.cs
Source:
ImmutableHashSet.cs

Crea un nuevo conjunto hash inmutable completado con los elementos 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

Tipo de elementos ordenados por colección.

Parámetros

items
IEnumerable<T>

Elementos a agregar al conjunto hash.

Devoluciones

Nuevo conjunto hash inmutable que contiene los elementos especificados.

Se aplica a

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

Source:
ImmutableHashSet.cs
Source:
ImmutableHashSet.cs
Source:
ImmutableHashSet.cs

Crea un nuevo conjunto hash inmutable que contiene los elementos especificados y usa el comparador de igualdad especificado para el 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

Tipo de elementos almacenados en la colección.

Parámetros

equalityComparer
IEqualityComparer<T>

Objeto que se va a utilizar para comparar la igualdad de los objetos del conjunto.

items
IEnumerable<T>

Los elementos se agregan a la colección antes de que se aplique la inmutabilidad.

Devoluciones

Nuevo conjunto hash inmutable.

Se aplica a