Singleton Design Pattern – Uncovering Why Singletons Are “Bad”
Everyone always says singletons are bad, but I don't think they are inherently evil. What are some of the major issues with singletons?
3 Comments
August 8, 2013
Everyone always says singletons are bad, but I don't think they are inherently evil. What are some of the major issues with singletons?
An example in C# about how to create a singleton with support for dependency injection or inversion of control (IOC).
Several examples in C# for how you can structure code to meet the singleton design pattern. Check it out before using singletons next!