ImmutableSortedSet<T>.Union(IEnumerable<T>) 方法

定義

將項目的指定資料集加入至這個不可變的已排序資料集。

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

參數

other
IEnumerable<T>

要加入的項目。

傳回

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

備註

System.Collections.Immutable NuGet 套件

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

適用於