Could you explain the difference between func vs action vs predicate?
Answer / Subhash Kumar
In C#, `Func<T>` represents a function that returns a specific type, while `Action<T>` is a delegate that takes in a single argument but doesn't return any value. On the other hand, `Predicate<T>` is a delegate that takes in an object and returns a Boolean result indicating whether a condition has been met.
| Is This Answer Correct ? | 0 Yes | 0 No |
How do I do implement a trace and assert?
What are value types and reference types?
What is difference between managed and unmanaged code?
1 Answers SwanSoft Technologies,
how to communicate inventory system and account system?
Is null empty or whitespace c#?
What is the use of console readline () in c#?
What is the difference between ref and out in c#?
What?s the difference between the Debug class and Trace class?
Why do we need ienumerable in c#?
What is CASPOL?
Where is the output of TextWriterTraceListener redirected?
1 Answers Rolta, Siebel Systems,
In c# how to connect crystal report?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)