Searches the current instance, returning the index of the last occurrence of the specified object.
- value
- The object to locate in the current instance.
A int that specifies the index of the last occurrence of value in the current instance, if found; otherwise, -1.
Note: This provides the caller with a standard code for a failed search.
Operation
As described above.The ArrayList is searched backward starting at the last element and ending at the first element.
This method uses Array.LastIndexOf(Array, object) to search the current instance for value.
Note: For the default implementation, this method performs a linear search. On average, this is an O(n/2) operation, where n is ArrayList.Count of the current instance. The longest search is an O(n) operation.
Namespace: System.Collections
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0