0Pricing
C# Academy · Lesson

Exploring Delegates and Lambdas

Understand delegates and lambda expressions for concise and flexible code.

1

Using Lambdas with Delegates

Lambdas can be assigned to delegates directly. Example:

Exploring Delegates and Lambdas — illustration 1

2

What is a Delegate?

A delegate is a type that holds references to methods with a specific signature. Delegates allow methods to be passed as parameters or assigned dynamically.

Example: Delegates are often used for callbacks and event handling.

All lessons in this course

  1. Generics in C#
  2. Async and Await: Working with Asynchronous Code
  3. Understanding Threading and Tasks
  4. Exploring Delegates and Lambdas
  5. Understanding Reflection in C#
← Back to C# Academy