What is Significance of using lambda expressions.
like in C# there foreach loop which might take 3-4 line for assigning values
using lamba
List.foreach(x=>x.something = new value)
I would like to know more on lambda and more advance uses of it in C#
A lambda expression is more a less a short hand syntax for a method.
Take the following lambda expression:
This is equivalent to:
Its usage allows you to create anonymous functions. So a method that would take a delegate would be defined as:
The lambda equivalent would be: