IList<T>.IndexOf(T) メソッド
定義
public:
int IndexOf(T item);
public int IndexOf (T item);
abstract member IndexOf : 'T -> int
Public Function IndexOf (item As T) As Integer
パラメーター
戻り値
リストに存在する場合は item
のインデックス。それ以外の場合は -1。The index of item
if found in the list; otherwise, -1.
注釈
オブジェクトがリスト内に複数回出現する場合、IndexOf メソッドは最初に見つかったものを常に返します。If an object occurs multiple times in the list, the IndexOf method always returns the first instance found.