Skip to content

Instantly share code, notes, and snippets.

@shytikov
Created November 15, 2011 13:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shytikov/1367041 to your computer and use it in GitHub Desktop.
Save shytikov/1367041 to your computer and use it in GitHub Desktop.
Simplest C# Singleton
// .NET Singleton
sealed class Singleton
{
private Singleton() {}
public static readonly Singleton Instance = new Singleton();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment