
The C# Type System
Author(s): Steve Love (Author)
- Publisher finelybook 出版社: No Starch Press
- Publication Date 出版日期: October 31, 2023
- Language 语言: English
- Print length 页数: 344 pages
- ISBN-10: 1718501587
- ISBN-13: 9781718501584
Book Description
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 turn good code into great.Editorial Reviews
Review
—Jon Skeet, Senior Staff Engineer at Google and Convenor of the ECMA Technical Group for C# Standardization
“Exceptionally ‘user friendly’ in organization and presentation,
The C# Type System is the ideal DIY instruction manual that is unreservedly recommended for novice users and seasoned programmers alike.”—Midwest Book Review
finelybook
