Chapter 7. Patterns in the .NET Base Class Library

In this chapter, we will focus on areas where the creators of the .NET Framework library have leveraged GoF design patterns for creating Application Programming Interfaces (APIs). This will give you an enormous insight into the usage of design patterns as a mechanism to expose well-defined software interfaces. Most developers consume design pattern-based software interfaces without knowing much about their underpinnings. This chapter will demystify API design based on patterns. As a reader, you will find real-world application of the following GoF patterns in the .NET Framework library:

  • Adapter pattern
  • Strategy pattern
  • Builder pattern
  • Decorator pattern
  • Chain of responsibility pattern
  • Bridge pattern ...

Get .NET Design Patterns 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.