The C# Type System

  • 6h 24m
  • Steve Love
  • No Starch Press
  • 2024

The type system is the foundation upon which all C# programs are built. The C# Type System will show you how to define and implement value types effectively, and write more performant and robust code. Real-world code examples and test cases throughout will elevate your programming with C# and show you how best to implement the principles you’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 mere data 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.

About the Author

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.

In this Book

  • Introduction
  • Making the Most of the Type System
  • Value and Reference Types
  • Reference and Value Parameters
  • Implicit and Explicit Copying
  • Types of Equality
  • The Nature of Values
  • Value Types and Polymorphism
  • Performance and Efficiency
  • Afterword

YOU MIGHT ALSO LIKE

Channel C#
Rating 5.0 of 1 users Rating 5.0 of 1 users (1)
Journey C# Journey
Rating 4.8 of 4 users Rating 4.8 of 4 users (4)