main.cs563 chars29 lines
This extension method can be used on any IList
in C# and takes in a predicate function to determine the search condition. The function uses the standard binary search algorithm to search for the index of the first element that satisfies the predicate function. It returns -1
if no element is found. Optionally, you can specify the start and end index for the search.
gistlibby LogSnag