ListBaseTIndexOf Method (T, Int32, Int32) |
Finds the index of the first item, in the range of count items starting from index,
that is equal to item.
Namespace: X3Platform.CollectionsAssembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntaxpublic virtual int IndexOf(
T item,
int index,
int count
)
public:
virtual int IndexOf(
T item,
int index,
int count
)
Parameters
- item
- Type: T
The item to search fror. - index
- Type: SystemInt32
The starting index of the range to check. - count
- Type: SystemInt32
The number of items in range to check.
Return Value
Type:
Int32The index of the first item in the given range that that is equal to
item. If no item is equal
to
item, -1 is returned.
RemarksThe 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