C# 5.0 in a Nutshell - Joseph Albahari

C# 5.0 in a Nutshell

Joseph Albahari

出版时间

2012-06-26

ISBN

9781449320102

评分

★★★★★
书籍介绍

When you have a question about how to use C# 5.0 or the .NET CLR, this highly acclaimed bestseller has precisely the answers you need. Uniquely organized around concepts and use cases, this fifth edition include in-depth cover of concurrency and asynchrony new to C# 5.0 as well as continued coverage of parallel programming, code contracts, dynamic programming, security and COM interoperability. You'll also find updated information on language enhancements such as Caller Info Attributes, ReadOnlyDictionary, Web Sockets, and the new HttpClient class. This handy book has all you need to stay on track with C# 5.0. Get up to speed on C# language basics, including syntax, types, and variables Explore advanced topics such as unsafe code and preprocessor directives Learn C# 5.0 features such as concurrency and asynchrony Work with .NET 4.5's rich set of features for parallel programming, code contracts, and the code security model Understand .NET topics, including XML, collections, I/O and networking, memory management, reflection, attributes, security, and native interoperability

精彩摘录
  • "• Conditionally including an attribute • Changing the declared type of variable • Switching between different namespaces or type aliases in a using directive— for example: using TestType = #if V2 MyCompany.Widgets.GadgetV2; #else MyCompany.Widgets.Gadget; #endif"
  • "A consequence of the last point is that a client should never specifically “catch” a contract failure (the ContractException type, in fact, is internal to help enforce that principle). Instead, the client should call the target properly; if it fails, this indicates a bug that should be handled via y"
用户评论
C#
这就是你了解c#所需要书
concise and accurate, topics are properly ordered
a detailed C# 5.0 reference manual
好书。C#演化到5.0,各种特性层出不穷,想穷尽所有做一个全面的介绍往往到头来都是费力不讨好。但这本书基本上做到了,可能有些部分不够详尽,但在1000多页的篇幅几乎没有滥竽充数的内容,代码示例都非常精当,值得一读。
刚刚开始读
从Threading in c#知道了作者,进而知道了LINQP ad,c# in a nutshell系列也是早有耳闻,但是书架中已经有不少c#方面的书,所以一直没有读的想法,直到后来偶然浏览了一遍这书电子版的目录,立马就被吸引了,基本上涵盖了日常工作所需的各个方面,而且有很多章节都是平时经常听说,略知皮毛但很少深入的,也是写代码时大部分困难的根源,从目录即能看出作者的经验之丰富,编排之用心。再翻开看几页内容(记得当时看的是COM交互),当场如醍醐灌顶,以前好多疑问均茅塞顿开(也可能是技术一般),于是立马收入囊中,时至今日仍不时翻看两眼,每次都能有所收获,实在是不可多得的好书。
收藏