Exemplifying the Factory Method Pattern inside the .NET Framework
page 6 of 6
by Xianzhong Zhu
Feedback
Average Rating: 
Views (Total / Last 10 Days): 9025/ 134

Conclusion

Design patterns are wonderful tools software masters bring to us, which are based upon the object oriented programming. As one of the mostly used design patterns, the Factory Method pattern is also widely leveraged in designing the numerous .NET Framework classes.

In this article, we first introduced the basic idea of the Factory Method pattern with a simple graphic related example. Then, we started to explore the behind implementation of one of the most important web classes-- WebRequest. By seeking after the detailed code related to class WebRequest we have finally dug out the design routine of class WebRequest and tasted the wonderful utilization of the Factory Method pattern.

One last note: I have omitted all the WebRequest associated code in the source code file, so I highly recommend you to pick up Red Gate's .NET Reflector (originally developed by Lutz Roeder) to find out all the related things.


View Entire Article

Article Feedback

Title:  
Name:  
Url: ( Optional )
Comment:  
Please add 7 and 8 and type the answer here:

User Comments

No comments posted yet.

Product Spotlight
Product Spotlight 






Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2009 ASPAlliance.com  |  Page Processed at 11/21/2009 4:08:20 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search