C# offers various delegates, and two commonly used ones are Action and Func. The Action delegate is a predefined delegate type that encapsulates a method with zero or more input parameters that doesn't return a value. The Func delegates offer a straightforward approach to defining and utilising methods by passing them as parameters.

3m read timeFrom freecodecamp.org
Post cover image
Table of contents
What is the Action Delegate in C#?What is the Func Delegate in C#?Conclusion

Sort: