Table of Contents

Method FindExact

Namespace
Alternet.Common
Assembly
Alternet.Common.v9.dll

FindExact(T, out int, IComparer<T>)

When implemented by a class, finds the given object in the sorted list with assumption that sorted list do not have any duplicates.

bool FindExact(T obj, out int index, IComparer<T> comparer)

Parameters

obj T

Object to find.

index int

Receive 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)

When implemented by a class, finds the given object in the sorted list with assumption that sorted list do not have any duplicates.

bool FindExact(object obj, out int index, IComparer comparer)

Parameters

obj object

Object to find.

index int

Receive index of the found object in the sorted list.

comparer IComparer

Object that exposes a method to compare two objects.

Returns

bool

True if the find succeed; otherwise false.