Discovery of design patterns in the net framework class library we use (1)

Source: Internet
Author: User

 

Link: http://msdn.microsoft.com/msdnmag/issues/05/07/DesignPatterns/

 

 

Recently, Microsoft has put more and more emphasis on design patterns. If you are not familiar with the design patterns, you will be overwhelmed by these new terms and UML diagrams that have never been seen. This time, the emphasis on the design model is not much changed in terms of methodology compared to the vocabulary changes, because Microsoft®. NET Framework base class library (BCL) has been widely used in design patterns. You have come into contact with these models, but you are not aware of them. In this article, I will explain the general situation of several basic modes and how to use them in other aspects of the BCL and framework. After reading this, you will find out why the Framework is designed in this way, and have an intuitive understanding of the abstract concepts of the design pattern.

 

 

 

Most of the models I mentioned here come from the design patterns book by Erich Gamma, Richard Helm, Ralph Johnson, and John Vlissides. They are the Gang of Four. In fact, the four-person group did not invent these models, but they documented and formulated the good designs that have been developed by others since software development to form a design model.

 

 

 

If you are familiar with the design model, you can read this article easily, because these chapters are independent and there is no much connection between them. About ASP. . NET requires you to be familiar with the request pipeline. In those chapters, we will have a rough understanding of the Request pipeline.

 

 

 

In. NET Framework, some patterns are too common. They are often embedded in programming languages, not just in class libraries. The first two modes I will discuss-the Observer and Iterator modes both have C # and VB. . NET. As you will see, they are the main part of a lot of conventional programming work.

 


From people who take hobbies as their work

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.