✅ Delegate vs lambda function/expression
Hello guys, I was just reading a bit about delegates and lambda expression. I thought that lambda expression and delegates were the same thing. For example, when I see something like:
I'm a bit confused, what makes each one different from the other and when to recognise them please
Func<int,int>.... is it a delegate? When such syntax appears in a method like in LINQ, there, what do we expect? Normally, we wrote something like s => s.DoSomething()I'm a bit confused, what makes each one different from the other and when to recognise them please