ImmutableHashSet<T>.IImmutableSet<T>.Union Metod

Definition

Skapar en ny oföränderlig uppsättning som innehåller alla element som finns i den aktuella uppsättningen eller i den angivna samlingen.

 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

Parametrar

other
IEnumerable<T>

Samlingen som du vill lägga till element från.

Returer

En ny oföränderlig uppsättning med de tillagda objekten. eller den ursprungliga uppsättningen om alla objekt redan fanns i uppsättningen.

Implementeringar

Kommentarer

Den här medlemmen är en explicit implementering av gränssnittsmedlemmar. Den kan endast användas när instansen ImmutableHashSet<T> skickas till ett IImmutableSet<T> gränssnitt.

Gäller för