Did you know you can do this in CSharp? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Did you know you can do this in CSharp?

Check out this code example, did you know you can do that? Now you do! https://code.sololearn.com/cFk805giuB80/?ref=app

13th Jul 2017, 3:10 PM
LaserHydra
LaserHydra - avatar
2 Answers
0
I knew. They are called lambda expressions. You can study more about it here. https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/statements-expressions-operators/lambda-expressions
13th Jul 2017, 3:14 PM
Salekin
Salekin - avatar
0
@Salekin It is called an "expression-bodied method", which though consist of a lambda expression, yes.
13th Jul 2017, 3:28 PM
LaserHydra
LaserHydra - avatar