ImmutableHashSet<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>

从中添加元素的集合。

返回

IImmutableSet<T>

已添加项的新不可变集;或者原始集(如果所有项已在该集内)。

实现

注解

此成员是显式接口成员的实现。 它只能在 ImmutableHashSet<T> 实例被强制转换为 IImmutableSet<T> 接口时使用。

适用于