Where can i find a good in depth guide to C# 3? [closed]

元气小坏坏 提交于 2019-12-03 02:04:36

问题


It seems that C# 3 hit me without me even noticing, could you guys tell me about good in depth guides to C# 3? from lambda to linq to everything else that was introduced with the third version of the language.

Printed books would be nice, but online guides would be even better!


回答1:


ScottGu has some great posts on C# 3:

  • The C# ?? null coalescing operator (and using it with LINQ)
  • LINQ to SQL: Part 8 (this is an 8 part series, check the top of the post for links to the first 7)
  • Automatic Properties, Object Initializers, and Collection Initializers
  • Extension Methods
  • Lambda Expressions
  • Query Syntax
  • Anonymous Types

Some more useful links:

  • MSDN: Overview of C# 3.0
  • David Hayden: C# 3.0 Tutorials and Examples



回答2:


There are some high quality blogs out there.

some of my favorites: Eric Lippert, Eric White, Scott Gu




回答3:


I've been told this is a good book C# in Depth.

MS Training kits Visual Studio 2008 and .NET Framework 3.5 Training Kit and .NET Framework 3.5 Enhancements Training Kit

Channel 9 presentation\videos




回答4:


I've read the first 4 chapters from 'C# In Depth' by Jon Skeet so far and would recommend this book.




回答5:


Just another recommendation for C# in Depth; not only will it fully explain C# 3.0 - but it will also significantly improve your understanding of C# 2.0 - for example, a lot of the more subtle nuances of iterator blocks or captured variables.

Definitely worth a read.




回答6:


http://msdn.microsoft.com/en-us/library/bb308966.aspx




回答7:


If your looking for some dead tree reference, I recommend Pro C# 2008 and the .NET 3.5 Platform by Andrew Troelsen.

http://www.amazon.co.uk/gp/reader/1590598849/ref=sib_rdr_toc?ie=UTF8&p=S006&j=0#reader-page




回答8:


I've found C# 3.0 in a Nutshell to be very useful.




回答9:


I found Pro LINQ: Language Integrated Query in C# 2008 to be very helpful for this. It has a chapter which covers all the new language features in 3, and of course the rest of the book goes into a deep dive on LINQ. I would highly recommend it.




回答10:


The C# 3 specification gives a complete description of the language, however this might be too much detail for your needs.



来源:https://stackoverflow.com/questions/170772/where-can-i-find-a-good-in-depth-guide-to-c-sharp-3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!