Mono Class Library: System Namespace

System.Predicate<T> Delegate

Represents the method that defines a Boolean query on an object. [Edit]
public delegate bool Predicate<T> (T obj)

Type Parameters

T
Documentation for this section has not yet been entered. [Edit]

Parameters

obj
Documentation for this section has not yet been entered. [Edit]

Value

true if obj meets the criteria defined within the method represented by this delegate; otherwise, false.true if obj meets the criteria defined within the method represented by this delegate; otherwise, false.Documentation for this section has not yet been entered. [Edit] [Edit] [Edit]

Remarks

Predicate methods are expected to not throw exceptions. If they do throw exceptions, other methods that use that delegate might exhibit unspecified behavior. It is also intended that predicate methods not produce side-effects; however, such methods need not be thread safe.

Note:

This delegate is used by several methods in Array, and in List<T> to search for elements in the collection.

[Edit]

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0