Part 4
4 chapters
The .NET Substrate
The Dispose pattern and IAsyncDisposable, value types and Span
Chapter 7
The Dispose pattern and IAsyncDisposable
Dispose(bool), finalizer interaction, using and await using, and the closest C# gets to RAII, specified by the Framework Design Guidelines.
Chapter 8
Value types: struct, readonly struct, and Span
When a value type is the right choice, and the C# 14 implicit span conversions that make Span
Chapter 9
NRTs, records, and init/required/with
Immutability as a design tool, and why nullable reference types remove the motivation for the Null Object pattern.
Chapter 10
Proving it works: xUnit and NSubstitute
The testing baseline every later chapter uses, with xUnit for test structure and NSubstitute for collaborator substitution.