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

定義

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

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

參數

other
IEnumerable<T>

要加入項目的來源集合。

傳回

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

適用於