what is design patterns? which design patterns mostly used
in .net? How it is used with examples?

Answer Posted / srivatsa h.g

Guys ... i cant post all of the DP samples ..nonetheless u
get it over the internet but i can just brief u bout the
Design patterns

1. Design patterns are the general solutions to the design
problems.... (Though they dont give you the code)

2. Design patterns show how to build systems with good OO
design qualities

3. Design patterns provide a shared language that can
maximize the value of ur communication with other developers

The patterns that are commonly used in .NET

1.Facade -- business obj invoked by UI thru Facade

2.Composite -- Menu ctrl designed thru Composite pattern

3.Strategy -- lets the algorithm vary indep'ly from
clients that use it

4.Observer -- Error logging and tracing implemented
using this pattern

5.Abstract Factory -- solves the problem of accessing diff
databases

6.Singleton -- one instance

7.Proxy -- Used in cases of Just in Time Loading..

Is This Answer Correct ?    17 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of design patterns?

671


What is singleton design pattern in java?

678


How did you design your unit tests?What about integration tests?

1887


What is the creational design pattern?

711


What is the difference between architecture and design?

668






What are the types of design patterns?

656


Is mvc a software design pattern?

780


Why do we need singleton pattern?

678


Using any system, product, or service your organization provides, identify the human system roles for the product.

2275


What are the additional productivity features and enhancements included with Quartus II software version 6.0?

2033


Are you using singleton in your code?

679


What is proxy in design pattern?

698


Why is singleton used?

712


What are the most commonly used design patterns?

688


What are the most popular design patterns?

659