In the previous article, we have learned about the delegates and their types. Now in this article, we are going to discuss the generic delegates in C#.
What are the generic delegates?
The Func , Action and Predicate are the three generic delegates which were introduced in .NET 3.5 and are availables in System namespace.
We can make use of all these three predefined generic delegates when we want to invoke the methods without defining the delegates explicitly.
Func delegate in C#
Func is a generic delegate that is available in the System namespace.
It can take up to 16 input parameters of the same or different data types and one out parameter.