ImmutableHashSet.CreateRange Método

Definición

Sobrecargas

Nombre Description
CreateRange<T>(IEnumerable<T>)

Crea un nuevo conjunto hash inmutable rellenado previamente 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
Source:
ImmutableHashSet.cs
Source:
ImmutableHashSet.cs
Source:
ImmutableHashSet.cs

Crea un nuevo conjunto hash inmutable rellenado previamente 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 almacenados por la colección.

Parámetros

items
IEnumerable<T>

Elementos que se van 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
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 usar para comparar objetos del conjunto para obtener igualdad.

items
IEnumerable<T>

Los elementos agregan a la colección antes de aplicar la inmutabilidad.

Devoluciones

Nuevo conjunto hash inmutable.

Se aplica a