Part 13
4 chapters
Changing Inherited Code
Seams where C# is non-virtual by default, the dependency-breaking techniques that follow, and the Fowler and Feathers contrast applied to C#.
Chapter 41
Seams in C#: non-virtual by default
The finding that inverts expectations: you cannot override to make a seam, so Feathers matters all the more in C#.
Chapter 42
Dependency-breaking techniques
InternalsVisibleTo, interface extraction, DI as a seam, and virtual as an explicit opt-in.
Chapter 43
Fowler vs Feathers, contrasted and combined
The refactoring catalogue and the dependency-breaking catalogue, contrasted and combined on one engine.
Chapter 44
Refactor or rewrite
The judgement call, with criteria rather than a reflex.