Click or drag to resize
ReadOnlyListBaseTLastIndexOf Method (T, Int32, Int32)
Finds the index of the last item, in the range of count items ending at index, that is equal to item.

Namespace: X3Platform.Collections
Assembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntax
public virtual int LastIndexOf(
	T item,
	int index,
	int count
)

Parameters

item
Type: T
The item to search for.
index
Type: SystemInt32
The ending index of the range to check.
count
Type: SystemInt32
The number of items in range to check.

Return Value

Type: Int32
The index of the last item in the given range that that is equal to item. If no item is equal to item, -1 is returned.
Remarks
The default implementation of equality for type T is used in the search. This is the equality defined by IComparable<T> or object.Equals.
See Also