/// Author: Bishop Myers (Sailerius)
/// Free for any use.
/// <summary>
/// Generic, thread-safe singleton class. Using it will promote whatever object is used for T into a singleton.
/// </summary>
/// <example>
/// <code>
/// Singleton<Foo>.Instance.Method();
/// </code>
/// </example>
public sealed class Singleton<T> where T : class, new()
{
public static readonly T Instance = new T ();
}