LastIndexOf
LastIndexOf(IList, object)
public static int LastIndexOf(IList instance, object element) ;
Description
Search the index where the element is stored from the end.
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.
LastIndexOf(IList, object, int)
public static int LastIndexOf(IList instance, object element, int startIndex) ;
Description
Search the index where the element is stored from the end.
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.
LastIndexOf(IList, object, int, int)
public static int LastIndexOf(IList instance, object element, int startIndex, int count) ;
Description
Search the index where the element is stored from the end.
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.