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 ...

Get C# Unleashed 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.