Summary
This chapter covered C# struct types. Primary topics covered were the relationship between classes and structures, type system unification, and designing a new type.
The section on the relationship between classes and structs discussed three general topics: the differences between value and reference types, structs being value and classes being reference; inheritance differences; and a few topics covering other miscellaneous differences between classes and structs.
The next section described type system unification. Its main topics were the pre-defined types and boxing/unboxing. The part on pre-defined types explained how all the built-in types in C# are really structs. The boxing/unboxing section showed the relationship between value ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access