Version: 2021.1
public int IndexOf (Type item);
public int IndexOf (object item);

参数

item 要在 TypeCollection 中定位的对象。

返回

int 返回此项首次出现位置的索引(索引从 0 开始)。如果找不到此项,则返回 -1

描述

获取某项在 TypeCollection 中的首次出现位置。