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

定義

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

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

參數

other
IEnumerable<T>

要加入項目的來源集合。

傳回

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

備註

other 所包含的任何重複項目都會被忽略。

適用於