SortedSet<T>.IsProperSupersetOf(IEnumerable<T>) メソッド

定義

SortedSet<T> オブジェクトが、指定されたコレクションの真のスーパーセット (真上位集合) であるかどうかを判断します。

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

パラメーター

other
IEnumerable<T>

現在の SortedSet<T> オブジェクトと比較するコレクション。

戻り値

SortedSet<T> オブジェクトが other の真のスーパーセットである場合は true。それ以外の場合は false

実装

例外

othernullです。

注釈

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

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

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

適用対象