Click here to Skip to main content
15,867,308 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 

5 Oct 2011 by Paulo Zemek
All classes are naturally Lazy loaded.So a better implementation will be:public class Singletonwhere T: new(){ public static readonly T Instance = new T();}You will notice that before calling the singleton class, the object will not be loaded.Surely there are...
13 Dec 2013 by comiscience
This is a singleton template class which can be used by classes with a private constructor.
1 May 2020 by honey the codewitch
Creating an application that can run once, but then accept command line args from subsequent runs
17 Oct 2011 by omid rezaei hanjani
Customized implementation of the Singleton pattern using Generics.
1 May 2020 by honey the codewitch
This tip demonstrates how to create an app that only allows one instance to run at a time
26 Oct 2011 by rj45
simple Asp.net singleton