© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•13mo ago•
37 replies
Faker

✅ Anonymous and lambda function in C#

Hello guys, I was just reading a bit about lambda functions. From what I've understood, it's an inline style of declaring a function definition. We use it if for example we want to only execute a function once. They are used together with delegates, to store the function reference and just invoke the function as needed.

Lambda function relies on delegates to work?

E.g of lambda functions:

Func<int,int> = (x) => {
  return x * x;
};
Func<int,int> = (x) => {
  return x * x;
};
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

❔ Lambda expressions in C#
C#CC# / help
3y ago
❔ Anonymous function in LINQ Select
C#CC# / help
3y ago
Lambda expression and arrow function
C#CC# / help
2y ago
❔ Anonymous function as method argument?
C#CC# / help
4y ago