ImmutableSortedSet<T>.IsProperSubsetOf(IEnumerable<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>

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

傳回

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

實作

備註

空集合是任何其他集合的適當子集。 因此,如果目前的集合是空的,則這個方法會傳回 true ,除非集合也是空的 other

System.Collections.Immutable NuGet 套件

關於不可變的集合以及如何安裝

適用於