ASP.NET Design Patterns

Explain various ASP.NET design patterns and the advantages of using them.

Questions by pritamde   answers by pritamde

Showing Answers 1 - 1 of 1 Answers


  • Jul 18th, 2011

Design Patterns
Design patterns are recognized solutions to common problems defined originally by the Gang of Four programmers. Design patterns are used throughout the ASP.NET Framework. The various patterns are commonly divided into several different groups depending on the nature of the design problem they intend to solve.

Creational Patterns
Factory - This pattern is used to create concrete class instances without specifying the exact class type. Abstract Factory - This pattern is used to create concrete class instances without specifying the exact class type. The Abstract Factory Pattern provides a way to encapsulate a group of individual factories that have a common theme.
Flyweight - A pattern used to maximize the sharing of objects resulting in reduced memory consumption.
Singleton - This pattern insures that only a single instance of a given object can exist.
Builder - This pattern separate the construction of a complex object from its representation so that the same construction process can create different representations..

Structural Patterns
Adapter - Convert the interface of a class into another interface clients expect. Adapter lets the classes work together that couldn't otherwise because of incompatible interfaces
Bridge - Decouples an abstraction from its implementation so that the two can vary independently.
Composite - Compose objects into tree structures to represent part-whole hierarchies. Composite lets clients treat individual objects and compositions of objects uniformly.
Decorator - Allows an objects behavior to be altered at runtime.
Facade - Used to provide a simpler interface into a more complicated portion of code.
Proxy - Provides a Placeholder for another object to control access to it.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.


Related Answered Questions


Related Open Questions