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!
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.