lambda expression
briefly describe about two type of lambda expression.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Blocked AccountPosted Sep 12, 2012, 7:23 AM
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;
}