Method FindExact
FindExact(T, out int, IComparer<T>)
Finds the given object in the sorted list with assumption that sorted list do not have any duplicates.
public bool FindExact(T obj, out int index, IComparer<T> comparer)
Parameters
obj
TObject to find.
index
intReceive index of the found object in the sorted list.
comparer
IComparer<T>Object that exposes a method to compare two objects.
Returns
- bool
True if the find succeed; otherwise false.
FindExact(object, out int, IComparer)
Finds the given object in the sorted list with assumption that sorted list do not have any duplicates.
public bool FindExact(object obj, out int index, IComparer comparer)
Parameters
obj
objectObject to find.
index
intReceive index of the found object in the sorted list.
comparer
IComparerObject that exposes a method to compare two objects.
Returns
- bool
True if the find succeed; otherwise false.