Behind the Scenes - Discover the Design Patterns You're Already Using in the .NET Framework
By Rob Pierry
This article discusses: - Common design patterns used in .NET Framework classes
- Patterns used to implement the ASP.NET programming model and request pipeline
- How patterns make programming tasks faster and easier
|
Contents
- Observer Pattern
- Iterator Pattern
- Decorator Pattern
- Adapter Pattern
- Factory Pattern
- Strategy Pattern
- Composite Pattern in ASP.NET
- Template Method Pattern
- Patterns in the ASP.NET Pipeline
- Intercepting Filter Pattern
- Page Controller Pattern
- Other Web Presentation Patterns in ASP.NET
In this article, I'll cover a basic overview of several common design patterns and how they are used in the BCL and other areas of the .NET Framework. In doing so, you can discover some of the motivation for why the Framework is designed the way it is, as well as make the abstract concepts of the patterns themselves more intuitively understandable.
If you are already familiar with some of these patterns, feel free to read about those you aren't familiar with, since each section is relatively independent. The section on ASP.NET-related patterns requires familiarity with the request pipeline, a basic overview of which is provided in that section.
Within the .NET Framework, the use of some patterns is so prevalent that they have been built into programming languages themselves, instead of just represented by the class libraries. The first two patterns I will discuss, the Observer and the Iterator, are supported