Skip to content

M_Cyjb_Collections_ObjectModel_ListBase_1_Contains

CYJB edited this page Mar 20, 2024 · 13 revisions

ListBase(T).Contains 方法

确定当前列表是否包含指定对象。

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

语法

C#

public override bool Contains(
	T item
)

参数

 

item
Type: T
要在当前列表中定位的对象。

返回值

Type: Boolean
如果在当前列表中找到 item,则为 true;否则为 false

实现

ICollection(T).Contains(T)
ICollection(T).Contains(T)

参见

Reference

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

Clone this wiki locally