What is the difference between LINQ and Lambda Expressions? Are there any advantages to using lambda instead of linq queries?
What is the difference between LINQ and Lambda Expressions? Are there any advantages to
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.
Linq is language integrated query. When using linq, a small anonymous function is often used as a parameter. That small anonymous function is a lambda expression.
In the above query
a => a > 7is a lambda expression. It’s the equivalent of writing a small utility method and passing that toWhere:This means that your question is really not possible to answer. Linq and lambdas are not interchangeable, rather lambdas are one of the technologies used to implement linq.