Click here to Skip to main content
15,886,199 members
Everything / Singleton

Singleton

singleton

Great Reads

by Chris875
State pattern and procedural solution illustrated
by Jon Campbell
How to utilize WCF to allow a single instance of any WPF application without needing mutexes, extra assemblies, or special "hacks".
by Scanix
SystemFramework defines interfaces, classes, and types to support a native runtime system with its own garbage collector, delegates, etc. The design of SystemFramework classes is similar to those of the .NET Framework.
by Dev Leader
About dependency injected singletons

Latest Articles

by Philippe Monteil
Core concepts and mechanisms of Microsoft.Extensions.DependencyInjection Dependency Injection
by Greg Utas
Yet another article on this topic?!
by honey the codewitch
Creating an application that can run once, but then accept command line args from subsequent runs
by honey the codewitch
This tip demonstrates how to create an app that only allows one instance to run at a time

All Articles

Sort by Score

Singleton 

2 Aug 2013 by Dev Leader
About dependency injected singletons
21 Jul 2014 by Paul M Watt
I am not aware of a software design pattern that has been vilified more than The Singleton. Just as every other design pattern, the singleton has its merits. Given the right situation, it provides a simple a clean solution, and just as every other design pattern, it can be misused.
9 Aug 2013 by Dev Leader
In this post, I’m going to focus on why singletons are “bad”, because for me it means acknowledging one of the two main perspectives–that they are the best thing since cat videos met The Internet or they are the worst thing since Justin Bieber.
1 Aug 2013 by Dev Leader
How to structure your Singletons.
24 Sep 2015 by Anton Angelov
Explains in detail how to implement Singleton Design Pattern. Practical examples how to use it in automation tests, following all SOLID principles.
27 Feb 2012 by StevenLJackson1
Describes the .NET ReaderWriterLock object and how to use it effectively to create a thread safe Singleton.
30 Jul 2012 by PratapReddyP
Singleton Pattern : This is a pattern which is widely used when there is a situation to create only one instance of a class.Lets demonstrate the pattern using a simple example. Earlier i used to wonder how load balancer servers work.