Skip to main content

Posts

Showing posts with the label Design Pattern Concepts

Singleton Design Pattern in C#

What Is Singleton Pattern? The Singleton Pattern ensures that a class has only one instance in the across application and the object instance coordinate to across the app. This pattern is the simplest design patterns and used to restrict the creation of multiple objects instance. For more detail kindly refer the link - /design-pattern-concepts-mvc-pattern.html This pattern is the simplest design patterns and used to restrict the creation of multiple objects instance. Table of Contents - Implementing the Singleton Pattern in C# 1.       Introduction - What Is Singleton Pattern? 2.       Non-thread-safe version 3.       Simple thread safety via locking 4.       Double-checked locking 5.       Safety through initialization 6.       Safe and fully lazy static initialization 7.   ...

The Concepts Of Design Pattern - Questions and Answers

This article helps you to learn about design patterns and uses of them. I have tried to easily  explain the problem statement where you can use these design patterns. I have cover  all below topics to understand  the c oncepts of Design Pattern. Table of Contexts - 1.       What is Design Pattern? 2.       Why should you use Design Patterns? 3.       What are the Advantages of Design Patterns? 4.       What are the Disadvantages of Design Patterns? 5.       What about Anti-patterns? 6.       Are Design Patterns the same thing as Frameworks? 7.       What are the Gang of Four (GoF) Design Patterns? 8.       Which Pattern is the Foundation of Design Pattern? 9.       What are the types of Design Patterns? 10.   What is C...