Exercise: Implement delegates in a C# app
This exercise guides you through the implementation delegates in a C# app. You complete the following tasks during this exercise:
- Implement a custom delegate that performs callback tasks adding transactions to an account.
- Implement a custom delegate that returns a list of sorted customers.
- Replace custom delegates with strongly typed
Action
andFunc
delegates.
Important
This exercise requires a Visual Studio Code environment with the C# Dev Kit extension installed. For help with configuring the Visual Studio Code environment, see Install and configure Visual Studio Code for C# development.
When you select the launch exercise button, the browser navigates to a public GitHub page that provides instructions for this exercise.
When you finish the exercise, return here for:
- A quick knowledge check.
- A summary of what you learned.
- A badge for completing this module.