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


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

User Comments

Title: Images missing   
Name: James
Date: 2013-01-21 4:01:32 PM
Hey all figure images are missing. Can you fix this??
Title: Amazing   
Name: Nimesh
Date: 2010-08-04 9:11:39 PM
Hi Xianzhong Zhu,
I can stop praising you for this article. It has answered so many of my questions along the way of learning new things. You should never stop writing such interesting articles man.

Carry on mate,


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

©Copyright 1998-2021 ASPAlliance.com  |  Page Processed at 2021-12-02 8:27:00 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search