Solved

Recommendation on some C# design patterns.

Posted on 2015-01-22
4
166 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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:Michael Fowler
Michael Fowler 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Article by: Ivo
C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

691 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