What are the important points to remember while using lambda expressions?
Answer Posted / Varun Kumar Jaiswal
1. Lambda expressions are anonymous functions that can be used to define a block of code that's passed around as a single unit. 2. They consist of a parameter list, an arrow token, a return type, and a function body enclosed in curly braces. 3. In C#, the parameters are optional if there is no ambiguity, and the type of the return value can be inferred from the context. 4. Lambda expressions are implicitly typed unless you specify otherwise.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
No New Questions to Answer in this Category !! You can
Post New Questions
Answer Questions in Different Category