Created
November 30, 2010 09:15
-
-
Save lpalli/721397 to your computer and use it in GitHub Desktop.
C# Singleton
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#region Constructor and Singleton | |
private static readonly Singleton _instance = new Singleton(); | |
public static Singleton Instance | |
{ | |
get { return _instance; } | |
} | |
private Singleton() | |
{ | |
// Nothing to do | |
} | |
#endregion |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment