© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
7 replies
surwren

Assigning Lambda to Delegate (PurposesReason)

Based on my (possibly incorrect) understanding, delegates are the variables to which lambda expressions are assigned.

https://stackoverflow.com/a/73819

Also based on my understanding (possibly incorrect), assigning a lambda to a delegate in this way makes it possible to pass said delegate/lambda expression into another method as an input parameter.

My question is, what are the advantages of passing lambda logic into other method with delegates?

Is it solely to promote reusability of code?

Or are there other advantages to it?
Stack Overflow
What is the difference between lambdas and delegates in the .NET Fr...
I get asked this question a lot and I thought I'd solicit some input on how to best describe the difference.
What is the difference between lambdas and delegates in the .NET Fr...
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

✅ Assigning an Action to a delegate
C#CC# / help
4y ago
✅ Delegate vs lambda function/expression
C#CC# / help
11mo ago
✅ (Linq) Assigning value in OrderBy lambda function
C#CC# / help
4y ago
❔ Delegate never assigned to (SOLVED!)
C#CC# / help
3y ago