+ 3
Exploring delegates on my way to lambda
To learn more. I am trying to make a delegate. I want to understand lambda, so I started by making a delegate first https://code.sololearn.com/c5oXNAt6pEM3 Thank to Bagshot, I did it. Now I off to anonymous method and multicast delegates
2 odpowiedzi
0
Good job. Delegates can be quite tricky to get your head around. I think it's because I struggle to see practical situations where I'd use them.
+ 1
I find it really hard to get my head arround.
If I look simple at
a delegate it is a variable that is pointing to a method.
But when I have to use it it is more complicated and I get lost.
I watched kudenvat today, part 36
https://www.youtube.com/watch?v=D2h46fvQX04
In this video he did something simalair as what I did in my code.
That was understandable.
But in the next video (part 37) He compares delegates to interfaces. Never tought those two would be similar. So I am lost again.