What are Design Patterns?
Hi, Please expain What all are the advantages of Design Patterns and frequently used design patterns
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Ravi PatelRank #439 · 5.7K reputationPosted Nov 4, 2016, 2:18 AM EDT
Salman BegRank #284 · 8.8K reputationPosted Nov 4, 2016, 2:53 AM EDT
Ananth GRank #1,176 · 1.5K reputationPosted Nov 4, 2016, 3:13 AM EDT
Tutorial: Common Design Patterns in C# 4.0
However, you have to take care to select the right pattern for the right problem. If you need to modify the initial pattern too much, this may indicate that it is not adapted to your needs and may in the worst case lead to unmaintainable, complex and inefficient code. The opposite of what you intend when using Design Patterns !!
You may also create your own custom Design Patterns. Whenever you come up with a certain solution that is reusable in a vast majority of your projects, you may decide to abstract a design pattern out of it. Then you may create your own library of patterns and share them within your whole company, thus creating standards and ameliorating maintainability.
I am going to show you how to use the well known Gang of Four (GoF) Design Patterns in C# 4.0 code. Those patterns will work well in any project that uses C# but especially in WPF, WCF, WinForms, ASP.NET projects.
The GoF Design Patterns are divided into 3 categories : Creational Patterns, Structural Patterns and Behavioral Patterns. I am going to explain each GoF Design Pattern in detail and will show you examples of how to write good C# 4.0 code that implement those patterns.
Creational Patterns
Structural Patterns
Behavioral Patterns
Bikesh SrivastavaRank #108 · 20.3K reputationPosted Nov 4, 2016, 10:23 AM EDT
Guest UserRank #2,002 · 726 reputationPosted Nov 4, 2016, 8:50 PM EDT
Design Patterns
https://msdn.microsoft.com/en-us/library/orm-9780596527730-01.aspx