Skip to content

Instantly share code, notes, and snippets.

@lpalli
Created November 30, 2010 09:15
Show Gist options
  • Select an option

  • Save lpalli/721397 to your computer and use it in GitHub Desktop.

Select an option

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