https://csharpindepth.com/Articles/Singleton
懒汉,饿汉,以及双层锁之外
还有使用Lazy的
public sealed class Singleton { private static readonly Lazy<Singleton> lazy = new Lazy<Singleton> (() => new Singleton()); public static Singleton Instance { get { return lazy.Value; } } private Singleton() { } }