What is the purpose of built-in delegate types like Action and Func?

Expert C#

Answer

Action represents methods that return void, while Func represents methods that return a value.

They reduce the need for custom delegate declarations and simplify modern C# programming.

Want to bookmark, take notes, or join discussions?

Sign in to access all features and personalize your learning experience.

Sign In Create Account

Source: SugharaIQ

Ready to level up? Start Practice