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