C# Delegates & Lambdas Explained

preview_player
Показать описание
Function as a value is one of the core functional programming paradigms. In c# it's called a "delegate", today we learn - why delegates are useful, delegate syntax, how delegates work internally and what are closures.

👉 Try Rider
RD5K9-4TXXW-KMV3G-NYWSF-3ZSTP

#csharp #delegates
Рекомендации по теме
Комментарии
Автор

This channel deserves more subs. Such a nice and underrated guy he is!

RezaERabbyRER
Автор

Man - you make things so clear with one single sentence - "delegates is kind interface of function".
Awesome, I search for it literally a years! Now it so simple!

mikhailkh
Автор

I want to master c# and i did strugle with delegates, but you made it so simple, many thanks dude

limitless
Автор

This helped me wrap my head around delegates, thanks a lot!

seanrendall
Автор

I learned a great deal from this. You're providing a great service with this channel. Many thanks!

MrAdamkimbo
Автор

Спасибо большое, наконец-то понял делегаты. Очень хорошие объяснение сравнивая как было и как код стал лучше с делегатами. Иногда смотрю твои стримы тоже, очень познавательно. Спасибо за твое творчество.

АйдарИльясов-ты
Автор

found this gem, starting to believe again on youtube

thiswallz
Автор

It really helps to understand the delegates in better way.. Thanks for that.
Need Lamda tutorial in advanced manner like this .... :)

sivasankaria
Автор

Thanks for this. I really appreciate your teaching method. I am an advanced beginner trying to get to the next level. I found your video to be super clear and to have just the right amount of background detail to fill in the gaps in my understanding of basics.

kpro
Автор

Thanks, this video help me understand better about delegate

danurarya
Автор

Delegates put right! This tutorial would have been the answer if i had asked delegates what they really are.

mebtuabebe
Автор

Your content is amazing... And there is so much! Thank you a lot, it really helped me understand better what are delegates.

leafarlua
Автор

Wow this is very good job, first video about delegates when someone finally describes it in a easy but accurate way. Keep doing that :D

Gazda
Автор

Understand delegates, generic delegates, anonymous functions, lambdas and a general sense of the complexity hidden in IL. However the last 3 minutes on what is a closure wasn't clear for me.. Thanks for your content.

ivanvincent
Автор

what setting do you use that transforms the => to an arrow (symbol)? do they call it fira code?

SaveTheHedgehog
Автор

How do you enable to auto-generate of the interface implementation. Also to change the color coding of the interfaces/classes to be blue (mine is white)? Also I'm not getting the references appear for my classes/methods?

vuongvu
Автор

Super technical explanation..thanks for sharing

StreetBladerBloke
Автор

Out of all the video in youtube about interface and delegates. I mangaged to differentiate and undestand clearly from this video. Should include interface in the video name. Thank you.

Asurow
Автор

Hi there, great video. I have a question for you. I've been trying to find examples an actual practical use delegate combination (outside of subscribing to an event) but I haven't been able to which makes me think it is just an inherited/extra feature of how the language designers wanted the event subscription syntax to be (+= and -=). I don't think I've ever seen an example in real-life code where a delegate is passed around as an argument and other delegates are added to it. I can sort of imagine it happening in some builder-pattern, maybe, but that is still a long shot, the delegate only allows you to add/remove from the delegate queue and invoke it.

Do you have any examples where delegate combination / multicast delegates (outside of events) would be a useful, readable, desirable way to write code? To me, the fact that a delegate can be turned into a multicast delegate at any point, is kind of scary, I've always treated them as just a 'function pointer' and not a 'container with possibly multiple function pointers'.

Sindrijo
Автор

This is a great content and you represented it very well! If I may ask for your opinion, what would be the most wanted skills for a .NET full stack postion? Cheers!

stefanbogdanovski