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) 작업입니다. 여기서 n 은 매개 변수의 요소 other 수입니다.

적용 대상