Skip to content

M_Cyjb_Collections_ObjectModel_ReadOnlySetBase_1_CountElements

CYJB edited this page Mar 20, 2024 · 13 revisions

ReadOnlySetBase(T).CountElements 方法

确定当前集与指定集合相比,相同的和未包含的元素数目。

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

语法

C#

protected virtual (int sameCount, int unfoundCount) CountElements(
	IEnumerable<T> other,
	bool returnIfUnfound
)

参数

 

other
Type: System.Collections.Generic.IEnumerable(T)
要与当前集进行比较的集合。
returnIfUnfound
Type: System.Boolean
是否遇到未包含的元素就返回。

返回值

Type: ValueTuple(Int32, Int32)
当前集合中相同元素和为包含的元素数目。

参见

Reference

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

Clone this wiki locally