ImmutableHashSet<T>.Union(IEnumerable<T>) Método

Definición

Crea un nuevo conjunto hash inmutable que contiene todos los elementos presentes en el conjunto actual o en la colección especificada.

public:
 System::Collections::Immutable::ImmutableHashSet<T> ^ Union(System::Collections::Generic::IEnumerable<T> ^ other);
public System.Collections.Immutable.ImmutableHashSet<T> Union(System.Collections.Generic.IEnumerable<T> other);
member this.Union : seq<'T> -> System.Collections.Immutable.ImmutableHashSet<'T>
Public Function Union (other As IEnumerable(Of T)) As ImmutableHashSet(Of T)

Parámetros

other
IEnumerable<T>

Colección desde la que se van a agregar elementos.

Devoluciones

Nuevo conjunto hash inmutable con los elementos agregados; o el conjunto original si todos los elementos ya estaban en el conjunto.

Se aplica a