Course
Skills
C# 5 Events, Delegates and Lambdas
This course provides an in-depth look at how events, delegates and lambdas work in the C# language and .NET framework.
What you'll learn
Events, delegates and lambdas play an important role in the .NET framework but can be difficult to understand as developers first get started with the C# language. If you’re interested in gaining a more thorough understanding of how these C# technologies work then you’re in the right place! This course focuses solely on events, delegates and lambdas and provides insight into how they can be used in your .NET applications using the C# language.
Table of contents
The Role of Events, Delegates and Event Handlers
24mins
Creating Delegates, Events and EventArgs
54mins
- Introduction 1m
- Creating a Delegate 12m
- Demo: Creating a Custom Delegate 9m
- Demo: Adding Multiple Delegates to an Invocation List 3m
- Demo: Returning a Value Using a Delegate 3m
- Defining an Event 5m
- Demo: Defining Events 2m
- Raising Events 5m
- Demo: Raising Events 6m
- Creating an EventArgs Class 5m
- Demo: Creating an EventArgs Class 4m
- Summary 0m
Handling Events
21mins
Lambdas, Action<T> and Func<T,TResult>
36mins