C# 6.0与.NET 4.6框架:第七版精华

需积分: 10 2 下载量 63 浏览量 更新于2024-07-19 收藏 36.42MB PDF 举报
"CSharp 6.0 and the .NET 4.6 Framework" by Andrew Troelsen and Philip Japikse is a comprehensive guide to the latest version of the C# programming language and the corresponding .NET Framework at the time of its release. 本书是第七版,由拥有20多年软件行业经验的专家Andrew Troelsen和Philip Japikse共同撰写。Andrew Troelsen不仅是开发者、教育家、作家和公共演讲者,还在Thomson Reuters担任团队领导和首席工程师。他撰写了多本关于微软技术的书籍,涵盖了基于ATL的COM开发、COM与.NET互操作性、Visual Basic以及获奖作品"C#和.NET平台"。他拥有圣托马斯大学的软件工程硕士学位,并在华盛顿大学攻读计算语言学的第二个硕士学位。 《C# 6.0 and the .NET 4.6 Framework》详细介绍了C# 6.0的新特性,这些特性包括但不限于: 1. **Null条件运算符**(?.):允许开发者安全地访问可能为null的对象成员,避免了NullReferenceException。 2. **字符串插值**:提供了一种简洁的方式来创建字符串,将表达式嵌入到引号内的文本中。 3. **异步lambda表达式**:使得在lambda表达式中可以更方便地处理异步操作。 4. **索引初始值设定项**:允许在创建数组或集合时直接初始化元素。 5. **自动属性的初始化器**:可以在声明自动属性时直接提供默认值。 6. **使用声明**(using statement):可以用于局部变量,确保在代码块结束时资源被正确释放。 7. **静态类成员的访问**:允许在不创建实例的情况下访问静态类的成员。 8. **默认表达式**:为泛型方法提供了默认参数值。 9. **增强的捕获列表**:在lambda表达式中可以捕获匿名方法作用域内的变量。 此外,书中还深入探讨了.NET 4.6框架,涵盖了诸如WCF(Windows Communication Foundation)、WF(Windows Workflow Foundation)、WPF(Windows Presentation Foundation)和ASP.NET等关键组件的使用。它不仅讲解了框架的基础知识,还包括如何利用这些技术来构建高效、可维护的现代应用程序。 作者们通过丰富的示例和实践指导,帮助读者理解并掌握C# 6.0和.NET 4.6的各个方面,旨在提升开发者在实际项目中的应用能力。此书对于那些想要深入学习C#和.NET平台的开发者来说,是一份宝贵的参考资料。
2016-01-06 上传
This new 7th edition of Pro C# 6.0 and the .NET 4.6 Platform has been completely revised and rewritten to reflect the latest changes to the C# language specification and new advances in the .NET Framework. You'll find new chapters covering all the important new features that make .NET 4.6 the most comprehensive release yet, including:, A Refined ADO.NET Entity Framework Programming ModelNumerous IDE and MVVM Enhancements for WPF Desktop DevelopmentNumerous updates to the ASP.NET Web APIs, This comes on top of award winning coverage of core C# features, both old and new, that have made the previous editions of this book so popular. Readers will gain a solid foundation of object-oriented development techniques, attributes and reflection, generics and collections as well as numerous advanced topics not found in other texts (such as CIL opcodes and emitting dynamic assemblies)., The mission of this book is to provide you with a comprehensive foundation in the C# programming language and the core aspects of the .NET platform plus overviews of technologies built on top of C# and .NET (ADO.NET and Entity Framework, Windows Communication Foundation (WCF), Windows Presentation Foundation (WPF), ASP.NET (WebForms, MVC, WebAPI).). Once you digest the information presented in these chapters, you’ll be in a perfect position to apply this knowledge to your specific programming assignments, and you’ll be well equipped to explore the .NET universe on your own terms., What You Will Learn:, Be the first to understand the .NET 4.6 platform and C# 6.Discover the ins and outs of the leading .NET technology.Learn from an award-winning author who has been teaching the .NET world since version 1.0.Find complete coverage of XAML, .NET 4.6 and Visual Studio 2015 together with discussion of the new Windows Runtime.