Calitha GOLD Parser Engine Documentation

IntegerList.LastIndexOf Method (Int32, Int32, Int32)

Searches for the specified value and returns the zero-based index of the last occurrence within the section of the list that contains the specified number of elements and ends at the specified index.

public int LastIndexOf(
   int value,
   int startIndex,
   int count
);

Parameters

value
The value to locate in the list.
startIndex
The zero-based starting index of the backward search.
count
The number of elements in the section to search.

Return Value

The zero-based index of the last occurrence of value within the section of the list that extends from the first element to startIndex, if found; otherwise, -1.

See Also

IntegerList Class | com.calitha.commons Namespace | IntegerList.LastIndexOf Overload List