Represents the method that defines a set of criteria and determines whether the specified object meets those criteria.
Namespace: SystemAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public delegate bool Predicate<in T>(
T obj
)
Parameters
- obj
- Type: T
The object to compare against the criteria defined within the method represented by this delegate.
Type Parameters
- T
- The type of the object to compare.This type parameter is contravariant. That is, you can use either the type you specified or any type that is less derived. For more information about covariance and contravariance, see Covariance and Contravariance in Generics.
Return Value
Type:
Booleantrue if
obj meets the criteria defined within the method represented by this delegate; otherwise, false.
See Also