Solved

Recommendation on some C# design patterns.

Posted on 2015-01-22
4
162 Views
Last Modified: 2015-01-28
I have used many built in .NET Patterns, such as IEnumerable. I want to "Roll my own" design patterns so to speak. What would be a useful design pattern to learn? Also suppose you have to create a data access layer in C#. Is there a particular pattern that is used for a DAL? The application I am working on is a desktop application.
0
Comment
Question by:brgdotnet
4 Comments
 
LVL 34

Assisted Solution

by:Mike Eghtebas
Mike Eghtebas earned 167 total points
ID: 40565750
0
 
LVL 75

Accepted Solution

by:
käµfm³d   👽 earned 167 total points
ID: 40565775
There are countless design patterns, so you may want to narrow your focus. Some common patterns are (in no particular order):

(Abstract) Factory
Decorator
Facade
Singleton (though some consider an anti-pattern)
Observer
Command
State
Adapter
Proxy
Model-View-Presenter (MVP)
Model-View-Controller (MVC)
0
 
LVL 2

Author Comment

by:brgdotnet
ID: 40565792
I know about all of the pattern names. Google can tell me that. I need to hear from an expert who has a lot of experience with design patterns.
0
 
LVL 23

Assisted Solution

by:Michael74
Michael74 earned 166 total points
ID: 40565818
What sort patterns are you talking about as this subject is very broad. There are 23 patterns which are considered to be the foundation of all other design patterns and these are broken into three groups Creational, Structural, and Behavioral. Which ones to learn would be highly dependent on your goals.

Two I would recommend are the Iterator and Singleton patterns

If you are really interested in the subject I would recommend getting a copy of "Design Patterns: Elements of Reusable Object-Oriented Software".
http://en.wikipedia.org/wiki/Design_Patternshttp://en.wikipedia.org/wiki/Design_Patterns

and here is a site with C# examples of the foundation patterns
http://www.dofactory.com/net/design-patterns
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

735 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question