Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is this C# syntax called?

Tags:

syntax

c#

In C#, you can do something like this:

SomeFunction (() => {
    DoSomething ();
});

What is the name of this syntax (the () => ...)?

like image 264
Matthew Avatar asked Nov 21 '25 04:11

Matthew


1 Answers

This is called Lambda Expression

like image 147
Moshe Levi Avatar answered Nov 23 '25 17:11

Moshe Levi