Lambda expression
briefly describe about two type of lambda expression.
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Blocked AccountRank #403 · 6.2K reputationPosted Sep 12, 2012, 3:23 AM EDT
We have two types of Lambda Expressions.
1) Expression Lambda
2) Statement Lambda
Expression Lambda
inputparamater => Expression block
Examples
(x) => x * x ;
(int y) => y+1;
Statement Lambda
inputparameter => Statement block;
Example:
(int x, int y) => return x+y;
(int x, int y)=> {
x = x + 1;
y = y + 1;
return x + y;
}