Differentiate between statement lambda and expression lambda.
Answer / Nirmala Kushwah
Statement lambdas are used for single-line anonymous functions without a return keyword. They consist of a block of code enclosed within curly braces, followed by an arrow (=>) and the method to be invoked. On the other hand, expression lambdas represent a more complex, multi-line function, and they include an implicit return keyword, as well as input and output variables. Expression lambdas are useful when working with LINQ queries because they allow for easier chaining of query operations.
| Is This Answer Correct ? | 0 Yes | 0 No |
List the important language extensions made in c# to make linq a reality?
Why do we use linq in c#?
Can we use left join in linq?
What is select new linq?
What is the basic syntax of a linq query in visual basic as well as in c#?
What is the difference between sql and linq?
What is the advantage of linq over sql?
What is data context class? Explain its role?
What is linqpad used for?
What is linq and how when is it used?
Explain what is select clause and where clause in linq?
What is lambda expression in linq c#?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)