ImmutableSortedSet<T>.IImmutableSet<T>.Union Metoda

Definicja

Tworzy nowy niezmienny zestaw zawierający wszystkie elementy, które znajdują się w bieżącym zestawie lub w określonej kolekcji.

 virtual System::Collections::Immutable::IImmutableSet<T> ^ System.Collections.Immutable.IImmutableSet<T>.Union(System::Collections::Generic::IEnumerable<T> ^ other) = System::Collections::Immutable::IImmutableSet<T>::Union;
System.Collections.Immutable.IImmutableSet<T> IImmutableSet<T>.Union (System.Collections.Generic.IEnumerable<T> other);
abstract member System.Collections.Immutable.IImmutableSet<T>.Union : seq<'T> -> System.Collections.Immutable.IImmutableSet<'T>
override this.System.Collections.Immutable.IImmutableSet<T>.Union : seq<'T> -> System.Collections.Immutable.IImmutableSet<'T>
Function Union (other As IEnumerable(Of T)) As IImmutableSet(Of T) Implements IImmutableSet(Of T).Union

Parametry

other
IEnumerable<T>

Kolekcja do dodawania elementów.

Zwraca

Nowy zestaw niezmienny z dodanymi elementami; lub oryginalny zestaw, jeśli wszystkie elementy były już w zestawie.

Implementuje

Uwagi

Ten element jest jawną implementacją członków. Można go używać tylko wtedy, gdy ImmutableSortedSet<T> wystąpienie jest rzutowe do interfejsu IImmutableSet<T> .

System.Collections.Niezmienny pakiet NuGet

Informacje o niezmiennych kolekcjach i sposobie instalowania

Dotyczy