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> オブジェクトと比較するコレクション。

返品

オブジェクトがの適切なサブセットである場合は a0/&。それ以外の場合は。

実装

例外

othernullです。

注釈

空のセットは、他のコレクションのサブセットです。 したがって、other パラメーターも空のセットでない限り、現在のSortedSet<T> オブジェクトで表されるコレクションが空の場合、このメソッドはtrueを返します。

このメソッドは、Countother内の要素の数以上の場合、常にfalseを返します。

otherによって表されるコレクションが、現在のSortedSet<T> オブジェクトと同じ等値比較子を持つSortedSet<T> コレクションである場合、このメソッドはO(n)操作です。 それ以外の場合、このメソッドは O(n + m) 操作であり、 nCount され、 mother内の要素の数です。

適用対象