Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
❔ => operator - C#
C
C#
•
3y ago
•
25 replies
joren
❔ => operator
So I read while looking into LINQ documentation that
=>
=>
is the syntax for a lambda expression
. Now in the context of LINQ it makes sense
, I would
've guessed already
. However in a class
:
class A
{
int foo() => 34;
}
class A
{
int foo() => 34;
}
I would assume it is not seen as a lambda
, it should just be a class method as its just syntax sugar for
:
int foo() { return 34; }
int foo() { return 34; }
C#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Overloading "+" operator
C
C# / help
3y ago
❔ conversion operator
C
C# / help
3y ago
✅ Operator ?? functions
C
C# / help
3y ago
✅ Default operator
C
C# / help
4y ago