blob: da16c48e476db2ab47929b6c9234f284e4dbfc43 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#nullable disable
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();
}
}
|