blob: 399a8bf033258a10ac5ddf7348d9e54fe6a8e762 (
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 T();
}
}
|