Chapter 9: Structural Patterns

In this chapter, we'll explore four design patterns from the well-known Gang of Four (GoF). These are structural patterns that are used to create complex, flexible, and fine-grained classes.

The following topics will be covered in this chapter:

  • Implementing the Decorator design pattern
  • Implementing the Composite design pattern
  • Implementing the Adapter design pattern
  • Implementing the Façade design pattern

Let's get started!

Implementing the Decorator design pattern

The Decorator pattern allows us to extend objects at runtime while keeping responsibilities separated. It is a simple but powerful pattern. In this section, we'll explore how to implement this pattern in the traditional way, as well as how to leverage ...

Get An Atypical ASP.NET Core 5 Design Patterns Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.