Delegates in C# - A practical demonstration, including Action and Func

  Рет қаралды 307,955

IAmTimCorey

IAmTimCorey

Күн бұрын

Delegates in C# are really powerful, but most people don't know how to use them effectively, if at all. Today I am going to show you what delegates are, how to use them, why they are useful, and really how to take your code to the next level. Along the way, I will cover the special types of delegates named Func and Action. Now if all these new words seem intimidating, don't worry. This topic is actually really simple at its foundation. Yes, you can do some complex things with delegates, but an actual delegate is absolutely simple.
Source Code: leadmagnets.app/?Resource=Del...
Patreon: / iamtimcorey
Newsletter signup: signup.iamtimcorey.com/
0:00 - Intro
1:28 - Demo application walk-through
7:52 - Explaining and creating a Delegate
18:19 - Func and Action: problems you can solve with delegates
21:37 - Func Delegate: creating and explaining
30:56 - Why to have delegate, if all the work is done elsewhere
34:00 - Action Delegate: creating and explaining
38:07 - Creating anonymous methods: anonymous Delegate
43:08 - Creating anonymous methods: anonymous Func
45:15 - Creating anonymous methods: anonymous Action
49:30 - Using Delegates in other projects: WinForms
58:37 - Using Anonymous Delegates in other projects: WinForms
1:02:15 - Summary

Пікірлер: 748
Chips evolution !! 😔😔
00:23
Tibo InShape
Рет қаралды 42 МЛН
C# Delegates & Lambdas Explained
32:43
Raw Coding
Рет қаралды 36 М.
What are Delegates? (C# Basics, Lambda, Action, Func)
18:39
Code Monkey
Рет қаралды 279 М.
C# Delegates Делегаты
18:14
codaza
Рет қаралды 80 М.
Why You Shouldn't Nest Your Code
8:30
CodeAesthetic
Рет қаралды 2,5 МЛН
C# Dependency Injection with Autofac
54:45
IAmTimCorey
Рет қаралды 291 М.
C# Events & Delegates
17:21
Tarodev
Рет қаралды 81 М.
C# Events and Delegates Made Simple | Mosh
32:04
Programming with Mosh
Рет қаралды 930 М.
Chips evolution !! 😔😔
00:23
Tibo InShape
Рет қаралды 42 МЛН