Hi Guest

MobileUser

1 HomePage 1 Jobs 1 WalkIn 1Articles  

Cat Exam

 :) Latest Topic
AJAX
VB.NET
SQL Query
UDDI
CLASS
JavaScript Questions
SharePoint Interview
SilverLight
WCF
general knowledge
 ASP.NET
 :) Hot Jobs
 
 :) Latest Articles


  

 


What do you mean by Predicate Delegate in cSharp?
Question Posted on 28 Oct 2022

Home >> DotNet >> C# >> What do you mean by Predicate Delegate in cSharp?




What do you mean by Predicate Delegate in cSharp?
When we say about Predicate Delegate in c# it is like Func and Action delegates. And this will represents a method which contains a set or criteria and checks whether the parameter passed meets criteria that are set.

And this Predicate Delegate methods must take one input parameter and return boolean values(True or False).

And the Predicate delegate is mainly defined in the System Namespace.

And below is the Predicate signature:-

public delegate bool Predicate< in T >(T obj);

When we say about the other delegate type, Predicate can also be used with any anonymous method, method or lambda expression.

Below is the example of Predicate delegate:-


Predicate Delegate
0
0



 
 Input Your Comments Or suggestions(If Any)
 Name
 Email(optional)
 Comments


Other Important Questions
Simplest definition of partial classes and its rules?
Definition of Tuple class with some examples?
Define Race Condition in cSharp?
C#.Net Reserve Words
can we inherit private class level variables in c#






 
Top Searches:asp net questions vb net questions sql query uddl questions class javascript Questions sharepoint interview questions and concept silverlight questions and concept wcf questions beans general knowledge ajax questions
PHP | Biztalk | Testing | SAP | HR |