More Effective C# : 50 Specific Ways to Improve Your C#, 2/e (Includes Content Update Program)
暫譯: 更有效的 C#:50 種具體方法提升你的 C#,第 2 版(包含內容更新計畫)

Bill Wagner

買這商品的人也買了...

相關主題

商品描述

In More Effective C#, Second Edition, world-renowned .NET expert Bill Wagner identifies and illuminates 50 intermediate-to-advanced techniques for writing exceptionally robust and well-performing C# 7.0 code. Reflecting the growing sophistication of the C# language and its development community, Wagner presents powerful new solutions to problems you’re likely to encounter every day.

 

Through three editions of Effective C#, Wagner’s clear explanations, expert tips, and realistic code examples have proven invaluable to hundreds of thousands of developers. With the publication of this title, Effective C#, Third Edition, and More Effective C#, Second Edition, have been completely reorganized to provide clear explanations, expert tips, and realistic code examples in a cohesive package for modern C#. More Effective C#, Second Edition, brings the same proven approach to the new features in C# 7.0, helping you perform familiar tasks more efficiently and effectively.

 

Drawing on his unsurpassed C# experience and key role on global C# standards committees, Wagner addresses object-oriented, functional, and service-oriented approaches to managing data with C#; better ways to express your intent to users and other programmers; and new opportunities to leverage powerful asynchronous and dynamic programming techniques.

  • Use properties instead of accessible data members (Item 1)
  • Distinguish between value and reference types (Item 4)
  • Understand relationships among multiple concepts of equality (Item 9)
  • Avoid conversion operators in your APIs (Item 11)
  • Understand how interface and virtual methods differ (Item 15)
  • Avoid overloading methods defined in base classes (Item 19)
  • Create method groups that are clear, minimal, and complete (Item 22)
  • Enable immediate error reporting in iterators and async methods (Item 26)
  • Use async methods for async work (Item 27)
  • Avoid thread allocations and context switches (Item 30)
  • Construct PLINQ parallel algorithms with exceptions in mind (Item 36)
  • Use the thread pool instead of creating threads (Item 37)
  • Use BackgroundWorker for cross-thread communication (Item 38)
  • Use the smallest possible scope for lock handles (Item 41)
  • Understand the pros and cons of dynamic programming (Item 43)
  • Make full use of the expression API (Item 46)
  • Minimize dynamic objects in public APIs (Item 47)

You’re already a successful C# programmer: this book will make you an outstanding one.

 

Content Update Program: This book is part of the InformIT Content Update Program. As updates are made to C#, sections of this book will be updated or new sections will be added to match updates to the technologies.

 

 

Register your product at informit.com/register for convenient access to downloads, updates, and corrections as they become available.

商品描述(中文翻譯)

在《更有效的 C#,第二版》中,世界知名的 .NET 專家 Bill Wagner 確定並闡明了 50 種中級到高級的技術,用於編寫異常穩健且性能優越的 C# 7.0 代碼。Wagner 反映了 C# 語言及其開發社群日益增長的複雜性,提出了針對您每天可能遇到的問題的強大新解決方案。

透過三版《有效的 C#》,Wagner 清晰的解釋、專家的建議和現實的代碼範例對數十萬名開發者來說都是無價的。隨著本書的出版,《有效的 C#,第三版》和《更有效的 C#,第二版》已經完全重新組織,以提供清晰的解釋、專家的建議和現實的代碼範例,為現代 C# 提供一個有凝聚力的包裝。《更有效的 C#,第二版》將相同的驗證方法應用於 C# 7.0 的新特性,幫助您更高效和有效地執行熟悉的任務。

憑藉他無與倫比的 C# 經驗和在全球 C# 標準委員會中的關鍵角色,Wagner 討論了使用 C# 管理數據的面向對象、函數式和面向服務的方法;更好地向用戶和其他程序員表達您的意圖;以及利用強大的異步和動態編程技術的新機會。

- 使用屬性而不是可訪問的數據成員(項目 1)
- 區分值類型和引用類型(項目 4)
- 理解多個相等概念之間的關係(項目 9)
- 避免在您的 API 中使用轉換運算符(項目 11)
- 理解介面和虛擬方法的區別(項目 15)
- 避免重載基類中定義的方法(項目 19)
- 創建清晰、簡潔且完整的方法組(項目 22)
- 在迭代器和異步方法中啟用即時錯誤報告(項目 26)
- 對於異步工作使用異步方法(項目 27)
- 避免線程分配和上下文切換(項目 30)
- 構建考慮到異常的 PLINQ 並行算法(項目 36)
- 使用線程池而不是創建線程(項目 37)
- 使用 BackgroundWorker 進行跨線程通信(項目 38)
- 對鎖定句柄使用最小可能範圍(項目 41)
- 理解動態編程的優缺點(項目 43)
- 充分利用表達式 API(項目 46)
- 在公共 API 中最小化動態對象(項目 47)

您已經是一位成功的 C# 程序員:這本書將使您成為一位傑出的程序員。

內容更新計劃:本書是 InformIT 內容更新計劃的一部分。隨著 C# 的更新,本書的部分內容將進行更新或新增部分以匹配技術的更新。

在 informit.com/register 註冊您的產品,以便方便地訪問下載、更新和修正,隨著它們的可用性而提供。