Part 6
3 chapters
Creating Objects Under Control
Factory Method and Abstract Factory under reified generics, Builder displacement by required members and collection expressions, and Singleton as a DI lifetime.
Chapter 15
Factory Method and Abstract Factory
How reified generics change these patterns, with typeof(T), constructor constraints, and type-keyed registries.
Chapter 16
Builder, required members, and Prototype with with
Why required members and collection expressions often beat a Builder, and Prototype as a one-line with expression.
Chapter 17
Singleton, Lazy, and DI lifetimes
Singleton as a lifetime registration rather than a class trick, and where Lazy