ImmutableHashSet<T>.ISet<T>.UnionWith(IEnumerable<T>) 方法

定义

修改当前集,使该集包含当前集或指定集合中存在的所有元素。Modifies the current set so that it contains all elements that are present in either the current set or in the specified collection.

 virtual void System.Collections.Generic.ISet<T>.UnionWith(System::Collections::Generic::IEnumerable<T> ^ other) = System::Collections::Generic::ISet<T>::UnionWith;
void ISet<T>.UnionWith (System.Collections.Generic.IEnumerable<T> other);
Sub UnionWith (other As IEnumerable(Of T)) Implements ISet(Of T).UnionWith

参数

other
IEnumerable<T>

要与当前集进行比较的集合。The collection to compare to the current set.

实现

注解

此成员是显式接口成员实现。This member is an explicit interface member implementation. 它只能在 ImmutableHashSet<T> 实例被强制转换为 ISet<T> 接口时使用。It can be used only when the ImmutableHashSet<T> instance is cast to an ISet<T> interface.

适用于