- You need to ensure there is only one instance of a class.
- Controlled access to that instance is essential.
- You might need more than one instance at a later stage.
- The control should be localized in the instantiated class, not in some other mechanism.
Use the Singleton pattern when …
Programmers Visited
Topics
- Active Directory Services (1)
- AJAX (8)
- ASP.NET (11)
- ASP.NET MVC (1)
- Assembly (4)
- CSS (1)
- Deployment (1)
- Design Patterns (54)
- General (1)
- Interview (1)
- OOPS (2)
- SQL Server (2)
- WCF (1)
- Windows Service (2)
- WPF (2)