using System; namespace ModernKeePass.Services { public abstract class SingletonServiceBase where T : new() { protected SingletonServiceBase() { } private static readonly Lazy LazyInstance = new Lazy(() => new T()); public static T Instance => LazyInstance.Value; } }