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

定义

修改当前集,使其包含当前集中、指定集合或两者中存在的所有元素。

public:
 void UnionWith(System::Collections::Generic::IEnumerable<T> ^ other);
public void UnionWith(System.Collections.Generic.IEnumerable<T> other);
abstract member UnionWith : seq<'T> -> unit
Public Sub UnionWith (other As IEnumerable(Of T))

参数

other
IEnumerable<T>

要与当前集进行比较的集合。

例外

othernull

注解

将忽略任何重复元素 other

适用于