Friday, March 19, 2010

03/19: Design Pattern in .Net

 

Example :

DP is  a practical optimized design solution .  General speaking, if a language is more advantaced and has more support to OOP,then using dp will be more easily. Just like .Net , a lot of dp is used inside:

 

Example

  1. Adding Reference : Proxy
  2. Net中对WebRequet、Stream等抽象类的继承扩展 : Decoration
  3. Asp.net Page Initialization: HttpApplication: Singleton
  4. IEnumerable: Iterator
  5. IEnumerable.GetEnumerator : Abstract Factory

0 Comments:

Post a Comment

<< Home