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

Definición

Crea un nuevo conjunto hash inmutable que contiene todos los elementos que están 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 de la que se van a agregar elementos.

Devoluciones

ImmutableHashSet<T>

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

Se aplica a