0
kicks
Predicate delegate in C#
As per MSDN predicate delegate is a pointer to a function that returns true or false and takes generics types as argument. It contains following signature.
Predicate<T> – where T is any generic type and this delegate will always return Boolean value. The most common use of a predicate delegate is to searching items in array or list. So let’s take a simple example. Following is code for that.