PooledList<T>.

BinarySearch(T, IComparer<T>) Method

Summary

Searches the list for a given element using a binary search algorithm. If the item implements System.IComparable`1 then that is used for comparison, otherwise System.Collections.Generic.Comparer`1.Default is used.
Namespace
Avalonia.Collections.Pooled
Containing Type
PooledList<T>

Syntax

public int BinarySearch(T item, IComparer<T> comparer)

Parameters

Name Type Description
item T
comparer IComparer<T>

Return Value

Type Description
int