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

定義

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

C#
public bool IsProperSubsetOf (System.Collections.Generic.IEnumerable<T> other);

參數

other
IEnumerable<T>

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

傳回

若目前的集合是其他集合正確的子集,則為 true,否則為 false

例外狀況

othernull

適用於

產品 版本
.NET 5, 6, 7, 8, 9