adspace
Could you explain the difference between func vs action vs predicate?
Answer Posted / 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 |
Post New Answer View All Answers