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.
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.
Try this link: http://msdn.microsoft.com/en-us/library/bb397687.aspx. It offers both theoretical background and examples.
this is also is good one: http://blogs.msdn.com/ericwhite/pages/Lambda-Expressions.aspx
Here is several tutorials about lambdas:
http://msdn.microsoft.com/en-us/library/bb397687.aspx
http://blogs.msdn.com/ericwhite/pages/Lambda-Expressions.aspx
And here are Eric Lippert's posts on the subject:
http://blogs.msdn.com/ericlippert/archive/tags/Lambda+Expressions/default.aspx
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
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
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/