Value Types (part 2)
We present the precise definition of value types as stored inline rather than behind a pointer, demonstrate with an integer array how inline storage reduces garbage collection to a single operation regardless of array size, and compare the performance trade-offs of structs versus classes.
Previous Module
.NET Runtime Memory Management
This Module
The .NET Type System