Is there a situation where the use of the lambda expression is particularly helpful or its mainly usage is to write less code?
Is there a situation where the use of the lambda expression is particularly helpful
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The justification for adding lambdas to the language was two things.
(1) They make syntactic transformation of query comprehensions possible. When you say
That becomes
(2) They can be turned into expression trees, and thereby make LINQ-to-SQL, LINQ-to-Entities, and so on, possible. That is, they can represent both the ability to do their semantics and the ability to inspect their structure.