Skip to content

Instantly share code, notes, and snippets.

@mathiassoeholm
Created November 27, 2013 15:00
Show Gist options
  • Select an option

  • Save mathiassoeholm/7677099 to your computer and use it in GitHub Desktop.

Select an option

Save mathiassoeholm/7677099 to your computer and use it in GitHub Desktop.
public sealed class Singleton
{
private static readonly Singleton instance = new Singleton();
public static Singleton Instance { get { return instance; } }
static Singleton() {}
private Singleton() {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment