ISet<T>.ExceptWith(IEnumerable<T>) Metoda

Definicja

Usuwa wszystkie elementy w określonej kolekcji z bieżącego zestawu.

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))

Parametry

other
IEnumerable<T>

Kolekcja elementów do usunięcia z zestawu.

Wyjątki

other to null.

Uwagi

Ta metoda jest operacją O(n), gdzie n jest liczbą elementów w parametrze other .

Dotyczy