๐Ÿงฉ Design Patterns with .NET / C#
Home Chapters Examples Diagrams Bibliography GitHub โ†—
  1. Home
  2. Composing and Adapting Structure
Part 7 3 chapters

Composing and Adapting Structure

Adapter, Facade, and Bridge with conversion operators, Decorator and Proxy through DI decoration and DispatchProxy, and Composite and Flyweight over repeated data.

Chapter 18

Adapter, Facade, and Bridge

The three structural adapters, plus C#'s implicit and explicit conversion operators.

Read โ†’
Chapter 19

Decorator and Proxy

Decorator and Proxy through DI decoration and DispatchProxy, and the attribute-versus-Decorator confusion.

Read โ†’
Chapter 20

Composite and Flyweight

Composite over nested structure, and Flyweight through interning, FrozenDictionary, and pooling.

Read โ†’
โ† Previous part Creating Objects Under Control Next part โ†’ Coordinating and Traversing
Design Patterns with .NET / C#
Tutorial content: CC BY 4.0. Sample code: Apache 2.0.
Source on GitHub โ†—  ยท  File an issue โ†—