Wintellect.PowerCollections Namespace
Algorithms Class
GhostDoc Pro Sample Help File

BinaryPredicate<(Of <(<'T>)>)> Delegate

The BinaryPredicate delegate type encapsulates a method that takes two items of the same type, and returns a boolean value representating some relationship between them. For example, checking whether two items are equal or equivalent is one kind of binary predicate.

Namespace:  Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax


public delegate bool BinaryPredicate<T>(
	T item1,
	T item2
)
Public Delegate Function BinaryPredicate(Of T) ( _
	item1 As T, _
	item2 As T _
) As Boolean
generic<typename T>
public delegate bool^ BinaryPredicate(
	T item1, 
	T item2
)

Type Parameters

T

Parameters

item1
Type: T
The first item.
item2
Type: T
The second item.

Return Value

Whether item1 and item2 satisfy the relationship that the BinaryPredicate defines.