NET Core and More

T12 Get Func-y: Understanding Delegates in .NET


1:30pm - 2:45pm

Level: Introductory to Intermediate

Jeremy Clark

Developer Educator

Delegates are waiting to make our code more flexible and extensible. We'll take a look at what delegates are and dispel the mystery of the built-in Func and Action delegate types. Jumping into code, we'll use them to make our classes more flexible and even use multi-casting to kick off a series of operations with a single call. Along the way, we'll see that lambda expressions can add readability to our code (yes, I actually said that). And this is a great jumping off point for heading into LINQ, parallel programming, and functional programming.

You will learn:

  • Understanding what delegates are
  • Using delegates for extensibility
  • Getting a handle on Func, Action, and lambda expressions