Skip to content

M_Cyjb_Collections_ObjectModel_SetBase_1_IsProperSubsetOf

CYJB edited this page Mar 20, 2024 · 13 revisions

SetBase(T).IsProperSubsetOf 方法

确定当前集合是否为指定集合的真子集合。

Namespace: Cyjb.Collections.ObjectModel
Assembly: Cyjb (in Cyjb.dll) Version: 1.0.23+7750dd8e971297c5fa962a3bee37fb78f72793f6

语法

C#

public virtual bool IsProperSubsetOf(
	IEnumerable<T> other
)

参数

 

other
Type: System.Collections.Generic.IEnumerable(T)
要与当前集合进行比较的集合。

返回值

Type: Boolean
如果当前集合是 other 的真子集合,则为 true; 否则为 false

实现

ISet(T).IsProperSubsetOf(IEnumerable(T))
IReadOnlySet(T).IsProperSubsetOf(IEnumerable(T))

Exceptions

 

异常 条件
ArgumentNullException othernull

参见

Reference

SetBase(T) 类
Cyjb.Collections.ObjectModel 命名空间

Clone this wiki locally