Skip to content

M_Cyjb_Compilers_Parsers_ParserController_1_IndexOf

CYJB edited this page Mar 23, 2024 · 7 revisions

ParserController(T).IndexOf 方法

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

Namespace: Cyjb.Compilers.Parsers
Assembly: Cyjb.Compilers.Runtime (in Cyjb.Compilers.Runtime.dll) Version: 1.0.20+d347ea0351607fb282fdf60a5301f9cccb3ab27e

语法

C#

public override int IndexOf(
	ParserNode<T> item
)

参数

 

item
Type: Cyjb.Text.ParserNode(T)
要在当前列表中定位的对象。

返回值

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

实现

IList(T).IndexOf(T)

参见

Reference

ParserController(T) 类
Cyjb.Compilers.Parsers 命名空间

Clone this wiki locally