what is lambda expression in linq?
my question is from asp.net
Asked by Puneet Sharma
-
1 Answer
-
Lambdas are used in method-based LINQ queries as arguments to standard query operator methods such as Where.
When you use method-based syntax to call the Where method in the Enumerable class (as you do in LINQ to Objects and LINQ to XML) the parameter is a delegate type System.Func(Of T, TResult). A lambda expression is the most convenient way to create that delegate. When you call the same method in, for example, the System.Linq.Queryable class (as you do in LINQ to SQL) then the parameter type is an System.Linq. Expressions.Expression where Func is any Func delegates with up to sixteen input parameters. Again, a lambda expression is j...more
Taking an Exam? Selecting a College?
Get authentic answers from experts, students and alumni that you won't find anywhere else
Sign Up on ShikshaOn Shiksha, get access to
- 65k Colleges
- 1.1k Exams
- 666k Reviews
- 1600k Answers