CONTENTS IN DETAIL
- TITLE PAGE
- COPYRIGHT
- DEDICATION
- ABOUT THE AUTHOR AND TECHNICAL REVIEWER
- ACKNOWLEDGMENTS
- INTRODUCTION
- Who Should Read This Book
- Organization and Requirements
- Modern Features
- Why Value Types?
- 1MAKING THE MOST OF THE TYPE SYSTEM
- The Value of Good Names
- Adding Clarity Through Types
- Named Arguments
- Custom Types
- Encapsulation
- Immutability
- Value Validation
- Testing
- Refactoring
- Replacing Magic Numbers with Named Constants
- Simplifying Properties and Values
- Overloading Arithmetic Operators
- Determining a Need for New Types
- Encoding Units
- Itemizing Units with enums
- Static Creation Methods
- Symmetry in Design
- Making Units Explicit
- Choosing the Most Natural Usage
- Returning Types Implied by Units
- A Fully Formed Encapsulated Value
- Deciding ...
Get The C# Type System now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.