# IndexOf

## IndexOf(IList, object)

public static int IndexOf(IList instance, object element) ;

### Description

Gets the index where the element is stored.

### Parameters

Parameter Name | Description
--- | ---
instance | Instance of type IList
element | Element

### Returns

The index where the element is stored. Returns -1 if there is no element.

## IndexOf(IList, object, int)

public static int IndexOf(IList instance, object element, int startIndex) ;

### Description

Gets the index where the element is stored.

### Parameters

Parameter Name | Description
--- | ---
instance | Instance of type IList
element | Element
startIndex | Start index

### Returns

The index where the element is stored. Returns -1 if there is no element.

## IndexOf(IList, object, int, int)

public static int IndexOf(IList instance, object element, int startIndex, int count) ;

### Description

Gets the index where the element is stored.

### Parameters

Parameter Name | Description
--- | ---
instance | Instance of type IList
element | Element
startIndex | Start index
count | Count

### Returns

The index where the element is stored. Returns -1 if there is no element.