ReadOnlyCollectionBuilder<T>.IndexOf(T) 方法

定义

返回生成器中给定值的第一个匹配项的索引。Returns the index of the first occurrence of a given value in the builder.

public:
 virtual int IndexOf(T item);
public int IndexOf (T item);
abstract member IndexOf : 'T -> int
override this.IndexOf : 'T -> int
Public Function IndexOf (item As T) As Integer

参数

item
T

要搜索的项。An item to search for.

返回

某个项的第一个匹配项的索引。The index of the first occurrence of an item.

实现

适用于