ISet<T>.IsProperSupersetOf(IEnumerable<T>) 方法

定義

判斷目前的資料集是否為指定之集合的適當 (嚴格) 超集。

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

參數

other
IEnumerable<T>

要與目前資料組比較的集合。

傳回

如果目前資料集是 other 的正確超集,則為 true,否則為 false

例外狀況

othernull

備註

如果目前的集合是的適當超集 other,則目前的集合必須至少有一個 other 沒有的專案。

空白集合是任何其他集合的適當超集。 因此,如果 參數所代表的集合是空的other,除非目前的集合也是空的,否則這個方法會傳回 true

如果目前集合中的項目數目小於或等於 中的other項目數目,這個方法一律會傳回 false

適用於