blob: 1bf318c4f34974e2e6a9d89d235571bcfd9e3982 (
plain)
1
2
3
4
5
6
7
8
9
10
|
namespace StardewModdingAPI.Framework
{
/// <summary>Provides singleton instances of a given type.</summary>
/// <typeparam name="T">The instance type.</typeparam>
internal static class Singleton<T> where T : new()
{
/// <summary>The singleton instance.</summary>
public static T Instance { get; } = new();
}
}
|