C#: Delegates, Events, and Lambdas

C#: Delegates, Events, and Lambdas

English | MP4 | AVC 1280×720 | AAC 44KHz 2ch | 1h 08m | 598 MB

C# provides different function types to fit a variety of real-world development scenarios. In this course, Joe Marini explores three important features of C#: Delegates, events, and lambdas. First, Joe shows how delegates are used to provide interchangeable functions during the lifetime of a program, which makes it easy to modify the functionality of an app on the fly. He then covers events, which are used to handle messages from both within and outside the program and can be turned on and off dynamically. Finally, he shows how lambdas provide a concise, efficient way of writing simple expressions without having all the associated syntax of a full function. These features help keep C# code readable, efficient, and maintainable, so join Joe to learn how to adapt this flexible set of programming tools to your own C# programming needs.

Table of Contents

Introduction
1 Using C# delegates, events, and lambdas
2 What you should know
3 Exercise files on GitHub
4 Setting up the developer environment

Getting Started
5 Overview of C# delegates, events, and lambdas
6 Common delegate, event, and lambda scenarios

C# Delegates
7 Creating C# delegates
8 Using anonymous delegates
9 Using composable delegates
10 Challenge Programming delegate
11 Solution Programming delegate

C# Events
12 Creating C# event handlers
13 Event chaining
14 Challenge Programming events
15 Solution Programming events

C# Lambdas
16 Understanding C# lambdas
17 Using lambdas as delegates
18 Challenge Programming lambdas
19 Solution Programming lambdas

Conclusion
20 Where to go next

Homepage