Click or drag to resize

binarySearchBinarySearchT Method (IListT, FuncT, Int32)

Namespace:  WhetStone.Looping
Assembly:  WhetStone (in WhetStone.dll) Version: 1.0.4.0 (1.0.0.0)
Syntax
C#
public static int BinarySearch<T>(
	this IList<T> this,
	Func<T, int> searcher
)

Parameters

this
Type: System.Collections.GenericIListT
The IListT to search.
searcher
Type: SystemFuncT, Int32
The binary searcher function.

Type Parameters

T
The type of the IListT.

Return Value

Type: Int32
The index that the binary search returns, or -1 if none found.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IListT. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also