Effective C#(编写高质量C#代码的50条有效方法第3版英文版)/原味精品pdf下载pdf下载

Effective C#(编写高质量C#代码的50条有效方法第3版英文版)/原味精品百度网盘pdf下载

作者:
简介:本篇主要提供Effective C#(编写高质量C#代码的50条有效方法第3版英文版)/原味精品pdf下载
出版社:
出版时间:2018-07
pdf下载价格:0.00¥

免费下载


书籍下载


内容介绍

基本信息

  • 商品名称:Effective C#(编写高质量C#代码的50条有效方法第3版英文版)/原味精品
  • 作者:(美)比尔·瓦格纳
  • 定价:89
  • 出版社:电子工业
  • ISBN号:9787121342653

其他参考信息(以实物为准)

  • 出版时间:2018-07-01
  • 印刷时间:2018-07-01
  • 版次:1
  • 印次:1
  • 开本:16开
  • 包装:平装
  • 页数:268
  • 字数:355千字

编辑推荐语

√ .NET专家Bill Wanger倾情力作 √ More Effective C# 升级版本 √ 应用开发者常备书目 √ 深度理解C#编程语言

内容提要

本书的作者,也是.NET专家Bill Wanger给出我们50条利用C#优点以及特性来写出健壮的,高效的,易于维护的代码的高效法则。同时,本书也反映出了C#语言愈发 的特性以及关于它的开发社区。本书同时也给出了大量新颖的方法让你能够写出高效可靠的代码。 新的第三版囊括了一些泛型和一些其他的语言集成查询(LINQ),还包括了对异常 实践这一新的章节。

作者简介

Bill Wagner是世界上 的C#开发者之一,是ECMA C#标准委员会的成员。他是Humanitarian Toolbox的 ,连续11年被授予Microsoft Regional Director和.NET MVP荣誉称号, 近他刚刚被委派到.NET基础顾问理事会任职。Wagner曾在各种公司工作过,从初创小公司到大企业都有,他帮助他们推进软件开发进程、培养他们的软件开发团队,目前他就职于Microsoft的.NET核心内容团队。他为对C#语言和.NET内核感兴趣的开发者整理学习材料。Bill拥有美国伊利诺伊大学香槟分校计算机专业理学学士学位。

目录

Chapter 1 C# Language Idioms
Item1: Prefer Implicitly Typed Local Variables
Item2: Prefer readonly to const
Item3: Prefer the is or as Operators to Casts
Item4: Replace string.Format() with Interpolated Strings
Item5: Prefer FormattableString for Culture-Specific Strings
Item6: Avoid String-ly Typed APIs
Item7: Express Callbacks with Delegates
Item8: Use the Null Conditional Operator for Event Invocations
Item9: Minimize Boxing and Unboxing
Item10: Use the new Modifier Only to React to Base Class Updates
Chapter 2 .NET Resource Management
Item11: Understand .NET Resource Management
Item12: Prefer Member Initializers to Assignment Statements
Item13: Use Proper Initialization for Static Class Members
Item14: Minimize Duplicate Initialization Logic
Item15: Avoid Creating Unnecessary Objects
Item16: Never Call Virtual Functions in Constructors
Item17: Implement the Standard Dispose Pattern
Chapter 3 Working with Generics
Item18: Always Define Constraints That Are Minimal and Sufficient
Item19: Specialize Generic Algorithms Using Runtime Type Checking
Item20: Implement Ordering Relations with IComparable<T> and IComparer<T>
Item21: Always Create Generic Classes That Support Disposable Type Parame
Item22: Support Generic Covariance and Contravariance
Item23: Use Delegates to Define Method Constraints on Type Parameters
Item24: Do Not Create Generic Specialization on Base Classes or Interfaces
Item25: Prefer Generic Methods Unless Type Parameters Are Instance Fields
Item26: Implement Classic Interfaces in Addition to Generic Interfaces
Item27: Augment Minimal Interface Contracts with Extension Methods
Item28: Consider Enhancing Constructed Types with Extension Methods
Chapter 4 Working with LINQ
Item29: Prefer Iterator Methods to Returning Collections
Item30: Prefer Query Syntax to Loops
Item31: Create Composable APIs for Sequences
Item32: Decouple Iterations from Actions, Predicates, and Functions
Item33: Generate Sequence Items as Requested
Item34: Loosen Coupling by Using Function Parameters
Item35: Never Overload Extension Methods
Item36: Understand How Query Expressions Map to Method Calls
Item37: Prefer Lazy Evaluation to Eager Evaluation in Queries
Item38: Prefer Lambda Expressions to Methods
Item39: Avoid Throwing Exceptions in Functions and Actions
Item40: Distinguish Early from Deferred Execution
Item41: Avoid Capturing Expensive Resources
Item42: Distinguish between IEnumerable and IQueryable Data Sources
Item43: Use Single() and First() to Enforce Semantic Expectations on Queries
Item44: Avoid Modifying Bound Variables
Chapter 5 Exception Practices
Item45: Use Exceptions to Report Method Contract Failures