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

定義

修改目前的 SortedSet<T> 物件,使其僅包含目前物件或指定之集合 (但非兩者) 中出現的項目。

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

參數

other
IEnumerable<T>

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

實作

例外狀況

othernull

備註

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

other如果 參數是與SortedSet<T>目前SortedSet<T>物件具有相同相等比較子的集合,則這個方法是O(n log m)作業。 否則,這個方法是作業 O(n log m) + O(n log n) ,其中 n 是中的 other 項目數目,而 mCount

適用於