开发者

lambda operator c# learning [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. Yo开发者_如何学运维u can edit the question so it can be answered with facts and citations.

Closed 4 years ago.

Improve this question

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.


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


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


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


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/


Two other good introductions to C# lambda expressions:

  • Explaining C# lambda statements in one sentence (and LINQ in about 10)
  • LINQ in Action

The first (disclaimer - my blog) will give you a quick explanation of the fundamental concepts. The book provides complete coverage of all relevant topics.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜