Table of Contents

Method FindFirst

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

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

Finds the first occurrence of the given object that satisfies searching criteria.

public bool FindFirst(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.

FindFirst(object, out int, IComparer)

Finds the first occurrence of the given object that satisfies searching criteria.

public bool FindFirst(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.