Click or drag to resize

binarySearchBinarySearchStartBiasT Method (IListT, FuncT, Boolean, binarySearchBooleanBinSearchStyle)

Namespace:  WhetStone.Looping
Assembly:  WhetStone (in WhetStone.dll) Version: 1.0.4.0 (1.0.0.0)
Syntax
C#
public static int BinarySearchStartBias<T>(
	this IList<T> this,
	Func<T, bool> searcher,
	binarySearchBooleanBinSearchStyle style = binarySearchBooleanBinSearchStyle.GetLastTrue
)

Parameters

this
Type: System.Collections.GenericIListT
The IListT to search.
searcher
Type: SystemFuncT, Boolean
The binary searcher function.
style (Optional)
Type: WhetStone.LoopingbinarySearchBooleanBinSearchStyle
The search style of the boolean binary search.

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).
Remarks
See Also