SyntaxNodeCollection1.IndexOf
SyntaxNodeCollection<T>.IndexOf method
获取给定项的索引。
public int IndexOf(T item)
范围 | 类型 | 描述 |
---|---|---|
item | T | 要获取其索引的项目。 |
返回值
项目在集合中的索引 - 或 - 如果未找到该项目,则为 -1。
获取给定项的索引。
public int IndexOf(T item)
范围 | 类型 | 描述 |
---|---|---|
item | T | 要获取其索引的项目。 |
项目在集合中的索引 - 或 - 如果未找到该项目,则为 -1。