Udostępnij za pośrednictwem


ReadOnlyLinkedElementCollection<T>.IndexOf(T) Method

Definition

Gets the index of a role player inside collection.

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

Parameters

item
T

Role player to look for.

Returns

Index of the role player inside collection or -1 if not found.

Implements

Applies to