๐ Delegates, Lambda Expressions & Closures in C# โ Tutorial (Patreon)
Content
Hi everyone! ๐
Believe it or not, one of my most popular tutorials is the one about Enums, Flags & Bitwise Operators in C#. For this reason, I have decided to cover another trickyโyet very powerfulโaspect of C#: functional programming.
Following a recent poll on Twitter, a lot of people were keen on longer tutorials (rather than several shorter ones). So, get ready for quite a beefy article!
In this tutorial, we will talk about the following...
- Anonymous functions
- Delegates
- Anonymous delegates
- Multicast delegates
- Lambda expressions
- Lambda statements
- Expression-body members
- Expression trees
- Local functions
- Closures
The focus will mostly be on delegates, lambdas and closures, but I hope you will find the other topics very interesting!
All of this is also supported in Unity, so this is all good knowledge that you can use to improve your code!
As always, thank you for your support and feel free to get in touch if you have any question! ๐
๐ง๐ป
Files
Previews only