Skip to content

Instantly share code, notes, and snippets.

@lpalli
Created November 30, 2010 09:15
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lpalli/721397 to your computer and use it in GitHub Desktop.
Save lpalli/721397 to your computer and use it in GitHub Desktop.
C# Singleton
#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