tags:

views:

477

answers:

6

Hello all

Can you recommend me on places where i can read and see examples on usage of Lambda operator in c# .

I will really like to see a lot examples on it...

Thanks.

+1  A: 

Try this link: http://msdn.microsoft.com/en-us/library/bb397687.aspx. It offers both theoretical background and examples.

Kerido
+1  A: 

this is also is good one: http://blogs.msdn.com/ericwhite/pages/Lambda-Expressions.aspx

Neverrav
+3  A: 

Apart from a search on Google, I'd probably recommend getting the free version of CodeRush / Refactor! from DevExpress. One of the refactorings is to convert code to lambda expressions, and can be an excellent way to see real-world, relevant examples based on your own code.

Edit: The Lambda Refactorings that come with CodeRush Xpress are detailed here

ZombieSheep
Can you put me a link to it i just can't see it on their page...
Night Walker
try http://devexpress.com/Products/Visual_Studio_Add-in/CodeRushX/
ZombieSheep
+1  A: 

Eric White has a nice blog entry on some examples of Lambda expressions:

http://blogs.msdn.com/ericwhite/pages/Lambda-Expressions.aspx 

Otherwise, as each expressions is generally bespoke to the requirement I'd advise a decent book to get you started. Many of the Linq title cover lambda expressions well. Personally I'd recommend Linq in Action

Brian Scott
+1 for LINQ in Action, section 2.4, page 55.
Rap
A: 

Jon Skeet wrote an excellent book that tackles lambda expressions but also goes into a tremendous amount of depth on topics that might be new to someone coming from a C# 1 or 2 background. http://csharpindepth.com/

Anthony Pegram