C#C
C#10mo ago
Faker

✅ 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: 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
Was this page helpful?