แก้ไข

แชร์ผ่าน


IListContract<C>.IndexOf(C) Method

Definition

Returns the index of a specific element in the IListContract<C>.

public:
 int IndexOf(C item);
public int IndexOf (C item);
abstract member IndexOf : 'C -> int
Public Function IndexOf (item As C) As Integer

Parameters

item
C

The IContract to locate in the IListContract<C>.

Returns

The index of item if found in the list; otherwise, -1.

Applies to