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
- Factory pattern
- Observer pattern
- Composite pattern
- Facade pattern
- Iterator pattern