Method FindLast
FindLast(T, out int, IComparer<T>)
When implemented by a class, finds the last occurrence of the given object that satisfies searching criteria.
bool FindLast(T obj, out int index, IComparer<T> comparer)
Parameters
objTObject to find.
indexintReceive index of the found object in the sorted list.
comparerIComparer<T>Object that exposes a method to compare two objects.
Returns
- bool
True if the find succeed; otherwise false.
FindLast(object, out int, IComparer)
When implemented by a class, finds the last occurrence of the given object that satisfies searching criteria.
bool FindLast(object obj, out int index, IComparer comparer)
Parameters
objobjectObject to find.
indexintReceive index of the found object in the sorted list.
comparerIComparerObject that exposes a method to compare two objects.
Returns
- bool
True if the find succeed; otherwise false.