M_Cyjb_Collections_ObjectModel_ListBase_1_IndexOf - CYJB/Cyjb GitHub Wiki

ListBase(T).IndexOf 方法

确定当前列表中指定对象的索引。

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

语法

C#

public abstract int IndexOf(
	T item
)

参数

 

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

返回值

Type: Int32
如果在当前列表中找到 item,则为该对象的索引;否则为 -1

实现

IList(T).IndexOf(T)

参见

Reference

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

⚠️ **GitHub.com Fallback** ⚠️