Click here to Skip to main content
15,915,702 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Can any one Explain the Difference between with example why need lambda expression
Difference Between Anonymous Method and lambda expression
Posted
Comments
Monjurul Habib 17-Jun-11 14:49pm    
Google it...

try with google. you can get some link in MSDN or in CP. its more effective than waiting for answer.
check following link
Lambda Expressions vs Anonymous methods[^]

Delegates, Anonymous Methods, and Lambda Expressions[^]
 
Share this answer
 
Comments
Monjurul Habib 17-Jun-11 14:45pm    
nice links, my 5.
 
Share this answer
 
Comments
Monjurul Habib 17-Jun-11 14:45pm    
nice link, my 5.
A lambda expression is basically just another way to define an anonymous method.

For example the following anonymous method:
Action<int> a = delegate (int x) { Console.WriteLine(x); };


...can be defined using a lambda expression:
Action<int> a = x => Console.WriteLine(x);


and the result is exactly the same.
 
Share this answer
 
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900