ISet<T>.ExceptWith(IEnumerable<T>) メソッド

定義

指定したコレクション内のすべての要素を現在のセットから削除します。

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

パラメーター

other
IEnumerable<T>

セットから削除する項目のコレクション。

例外

othernullです。

注釈

このメソッドは O(n) 操作です。ここで、 nother パラメーター内の要素の数です。

適用対象