namespace MMOserver.Utils; public abstract class Singleton where T : Singleton, new() { private static readonly Lazy instance = new Lazy(static () => new T(), LazyThreadSafetyMode.ExecutionAndPublication); public static T Instance => instance.Value; protected Singleton() { } }