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>

要从中添加元素的集合。

返回

添加了项的新不可变哈希集;或原始集(如果所有项都已在集中)。

适用于