开发者

Curious about Lambda Expression

Lambda Expr开发者_Python百科essions (C# Programming Guide) Does this Microsoft page give all necessary information to learn lambda or is it a big topic to learn from other sources? I am learning C#, would like to know if microsoft c# language guide can give me all necessary information to become proficient in C#?

Thanks a lot.


Reading book and other information on web won't make you proficient on that topic. You need to do some practical work to actually understand and be able to apply. Skill != Knowledge.


I think MSDN help is enough for being proficient at any given language concept.

Given that you follow all those small examples and practices available on MSDN, you should be pretty clear on the fundamentals.

Remember, you will not learn anything until you practice.


Read "C# in Depth" by Jon Skeet ...

A short answer is that Lambda expression is one of the way (easy) to write delegates (in case of Linq To Objects). In case of Provider (like Linq to SQL) it acts as Expression Tree, which provider can parse to create appropriate query for underlying data source.

You can also learn it by writing linq queries for objects and sql. Compare the actual code created by C# with the help of Reflector.


Two other good introductions to C# lambda expressions:

  • Explaining C# lambda statements in one sentence (and LINQ in about 10)
  • LINQ in Action (I like C# in Depth but think this is better for LINQ.)

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜