Are you familiar with JavaScript? If so, think of Lambda expressions as anonymous JavaScript functions. Where in JavaScrip you would have
const square = (x) => x*x; square(4); //would return 16
in C# you would have
del Square = x => x * x; Square(4); //would return 16
You would use Lambda expressions anywhere where you would need to pass a function.
Hope that helps!
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Are you familiar with JavaScript? If so, think of Lambda expressions as anonymous JavaScript functions.
Where in JavaScrip you would have
in C# you would have
You would use Lambda expressions anywhere where you would need to pass a function.
Hope that helps!