October 2023
Intermediate to advanced
344 pages
9h 52m
English
C# gives special meaning to the term value type, but the concept of a value certainly isn’t unique to C#. In this chapter, we’ll revisit values more generally and identify some key characteristics that indicate whether we should implement something as a value type. We’ll look at the unique and important role of values and value types in our programs, and how implementing a well-behaved value type requires more than just using a struct or a record struct.
We’ll explore the following:
Read now
Unlock full access