ImmutableSortedSet<T>.IImmutableSet<T>.Union 方法

定義

建立新的不可變資料集,其中包含在目前資料集或指定之集合中出現的所有項目。

 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

參數

other
IEnumerable<T>

要加入項目的來源集合。

傳回

已加入項目的新不可變資料集,如果所有項目均已存在於資料集中,則為原始的資料集。

實作

備註

這個成員是明確介面成員實作, 只有在 ImmutableSortedSet<T> 執行個體轉換成 IImmutableSet<T> 介面時,才能使用這個成員。

System.Collections.Immutable NuGet 套件

關於不可變集合以及如何安裝

適用於