IImmutableSet<T>.IsProperSubsetOf(IEnumerable<T>) 方法

定義

判斷目前的不可變資料集是否為指定集合的完全 (嚴格) 子集合。Determines whether the current immutable set is a proper (strict) subset of the specified collection.

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

參數

other
IEnumerable<T>

要與目前資料組比較的集合。The collection to compare to the current set.

傳回

如果目前資料集為指定之集合的適當子集合,則為 true,否則為 falsetrue if the current set is a proper subset of the specified collection; otherwise, false.

備註

如果目前的集合是 other 的適當子集,other 必須至少有一個目前的集合沒有的元素。If the current set is a proper subset of other, other must have at least one element that the current set does not have.

適用於