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

정의

SortedSet<T> 개체가 지정된 컬렉션의 진 부분 집합인지 확인합니다.

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

매개 변수

other
IEnumerable<T>

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

반환

SortedSet<T> 개체가 other의 진 부분 집합이면 true이고, 그렇지 않으면 false입니다.

구현

예외

other이(가) null인 경우

설명

빈 집합은 다른 컬렉션의 적절한 하위 집합입니다. 따라서 매개 변수가 빈 집합이 아닌 한 other 현재 SortedSet<T> 개체가 나타내는 컬렉션이 비어 있으면 이 메서드는 를 반환 true 합니다.

이 메서드는 가 의 요소 other수보다 크거나 같으면 Count 항상 를 반환 false 합니다.

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

적용 대상