Free views, likes and subscribers at YouTube. Now!
Get Free YouTube Subscribers, Views and Likes

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

Follow
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: https://leadmagnets.app/?Resource=Del...
Patreon:   / iamtimcorey  
Newsletter signup: https://signup.iamtimcorey.com/

0:00 Intro
1:28 Demo application walkthrough
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

posted by pirategraphixkv