RichTextKit v0.4

BinarySearchExtension Class

Assembly: Topten.RichTextKit.dll
Namespace: Topten.RichTextKit.Utils

Extension methods for binary searching an IReadOnlyList collection

public static class BinarySearchExtension

Methods

BinarySearch<T>(this IReadOnlyList<T>, T)

Performs a binary search on the entire contents of an IReadOnlyList

BinarySearch<T,U>(this IReadOnlyList<T>, U, Func<T,U,int>)

Performs a binary search on the entire contents of an IReadOnlyList

BinarySearch<T,U>(this IReadOnlyList<T>, int, int, U, Func<T,U,int>)

Performs a binary search on a a subset of an IReadOnlyList

Subscribe for more like this. No spam, just fun tech stuff :)

Or, find me on Twitter: @toptensoftware.