SortedSet<T>.IntersectWith(IEnumerable<T>) 메서드

정의

지정된 컬렉션에도 있는 요소만 포함되도록 현재 SortedSet<T> 개체를 수정합니다.

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

매개 변수

other
IEnumerable<T>

현재 SortedSet<T> 개체와 비교할 컬렉션입니다.

구현

예외

other이(가) null인 경우

설명

이 메서드는 의 other중복 요소를 무시합니다.

매개 변수로 other 표현되는 컬렉션이 SortedSet<T> 현재 SortedSet<T> 개체와 동일한 같음 비교자를 가진 컬렉션인 경우 이 메서드는 연산입니다 O(n) . 그렇지 않으면 이 메서드는 연산입니다 O(n + m) . 여기서 nCountm 가 의 요소 수입니다 other.

적용 대상