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

정의

현재 SortedSet<T> 개체와 지정된 컬렉션에 같은 요소가 들어 있는지 여부를 확인합니다.

public:
 virtual bool SetEquals(System::Collections::Generic::IEnumerable<T> ^ other);
public bool SetEquals (System.Collections.Generic.IEnumerable<T> other);
abstract member SetEquals : seq<'T> -> bool
override this.SetEquals : seq<'T> -> bool
Public Function SetEquals (other As IEnumerable(Of T)) As Boolean

매개 변수

other
IEnumerable<T>

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

반환

현재 SortedSet<T> 개체가 other와 같으면 true이고, 그렇지 않으면 false입니다.

구현

예외

other이(가) null인 경우

설명

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

가 나타내는 other 컬렉션이 SortedSet<T> 현재 SortedSet<T> 개체와 동일한 같음 비교자를 가진 컬렉션이면 이 메서드는 연산입니다 O(log n) . 그렇지 않으면 이 메서드는 연산입니다 O(n + m) . 여기서 n 는 의 요소 other 수이고 m 는 입니다 Count.

적용 대상