CircularListTLastIndexOf(T, Int32) Method

Searches for the specified object and returns the zero-based index of the last occurrence within the range of elements in the CircularListT that extends from the first element to the specified index.

Definition

Namespace: KGySoft.Collections
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.5.0
C#
public int LastIndexOf(
	T item,
	int index
)

Parameters

item  T
The object to locate in the CircularListT.
index  Int32
The zero-based starting index of the backward search.

Return Value

Int32
The zero-based index of the last occurrence of item within the range of elements in the list that extends from the first element to index, if found; otherwise, –1.

See Also