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

정의

개체가 지정된 컬렉션의 상위 집합인지 여부를 SortedSet<T> 확인합니다.

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

매개 변수

other
IEnumerable<T>

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

반품

개체가 상위 집합이면 이고, 그렇지 않으면 .

구현

예외

othernull입니다.

설명

빈 집합을 포함한 모든 컬렉션은 빈 집합의 상위 집합입니다. 따라서 이 메서드는 현재 SortedSet<T> 개체가 비어 있더라도 매개 변수가 other 나타내는 컬렉션이 비어 있으면 반환 true 합니다.

이 메서드는 .의 요소 수보다 작으면 Count 항상 반환 false 합니다other.

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

적용 대상