PooledList<T>.

BinarySearch(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)

Parameters

Name Type Description
item T

Return Value

Type Description
int