The C# Type System
暫譯: C# 類型系統

Love, Steve

  • 出版商: No Starch Press
  • 出版日期: 2023-10-31
  • 定價: $1,800
  • 售價: 8.8$1,584 (限時優惠至 2025-03-31)
  • 語言: 英文
  • 頁數: 344
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1718501587
  • ISBN-13: 9781718501584
  • 相關分類: C#
  • 立即出貨 (庫存 < 4)

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

商品描述

Harness the power of the C# type system to write programs that are clearer, simpler, and more efficient.

The type system is the foundation upon which all C# programs are built. The C# Type System will show you how todefine and implement value types effectively, and write more performant and robust code. Real-world code examplesand test cases throughout will elevate your programming with C# and show you how best to implement the principlesyou're learning.

Among the core aspects of working with the type system, you'll learn:

- How user-defined value types, and even simple types, can enhance your code's readability
- How reference and value types differ within C#
- How method parameters and arguments relate to reference and value types
- How differences in copy semantics between value and reference types affect a program's behavior
- How the different methods of value comparisons for equality work behind the scenes
- The unique characteristics and roles of various types in an application, especially how value types go beyond meredata storage
- Why inheritance isn't optimal for value types
- How to measure and evaluate the performance of an app's use of different data types

Whether you're a novice or seasoned programmer, you'll find The C# Type System indispensable in your efforts to turngood code into great.

商品描述(中文翻譯)

利用 C# 類型系統的力量來編寫更清晰、更簡單且更高效的程式。

類型系統是所有 C# 程式的基礎。The C# Type System 將向您展示如何有效地定義和實現值類型,並編寫更具效能和穩健的程式碼。書中將提供實際的程式碼範例和測試案例,提升您使用 C# 的程式設計能力,並展示如何最佳實現您所學的原則。

在使用類型系統的核心方面中,您將學到:

- 如何使用者定義的值類型,甚至簡單類型,來增強程式碼的可讀性
- C# 中參考類型和值類型的區別
- 方法參數和引數如何與參考類型和值類型相關
- 值類型和參考類型之間的複製語義差異如何影響程式的行為
- 不同的值比較方法在背後如何運作以判斷相等性
- 應用程式中各種類型的獨特特性和角色,特別是值類型如何超越單純的資料儲存
- 為什麼繼承對於值類型並不是最佳選擇
- 如何衡量和評估應用程式使用不同資料類型的效能

無論您是新手還是資深程式設計師,您都會發現 The C# Type System 在將良好的程式碼轉變為卓越程式碼的過程中是不可或缺的。

作者簡介

Steve Love has been a professional C# developer for nearly 20 years, and has trained many other C# developers of varying levels of expertise. He writes for the ACCU magazines C Vu and Overload, and is a frequent speaker at conferences. This is the book he wishes he'd had early in his career.

作者簡介(中文翻譯)

Steve Love 擔任 C# 專業開發者已近 20 年,並培訓了許多不同專業水平的 C# 開發者。他為 ACCU 雜誌 C Vu 和 Overload 撰寫文章,並且經常在會議上發表演講。這是他希望在職業生涯早期就擁有的書籍。