CircularListTIndexOf(T, Int32, Int32) Method

Searches for the specified object and returns the zero-based index of the first occurrence within the range of elements in the CircularListT that starts at the specified index and contains the specified number of elements.

Definition

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

Parameters

item  T
The object to locate in the CircularListT.
index  Int32
The zero-based starting index of the search.
count  Int32
The number of elements in the section to search.

Return Value

Int32
The index of item if found within the range of elements in the list that starts at index and contains count number of elements, if found; otherwise, -1.

See Also