namespace StardewModdingAPI.Framework { /// Provides singleton instances of a given type. /// The instance type. internal static class Singleton where T : new() { /// The singleton instance. public static T Instance { get; } = new(); } }