M_Cyjb_Collections_ObjectModel_SetBase_1_CountElements - CYJB/Cyjb GitHub Wiki
确定当前集与指定集合相比,相同的和未包含的元素数目。
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)
当前集合中相同元素和为包含的元素数目。