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

定義

修改目前的 SortedSet<T> 物件,使其包含目前物件或指定之集合中出現的所有項目。

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

參數

other
IEnumerable<T>

要與目前 SortedSet<T> 物件比較的集合。

實作

例外狀況

othernull

備註

other 任何重複的項目都會被忽略。

適用於