Class Singleton<T>
Generic singleton class
public sealed class Singleton<T> where T : new()
Type Parameters
T
- Inheritance
-
Singleton<T>
- Inherited Members
- Extension Methods
Remarks
Wraps any T
(with default ctor) into a singleton instance.
Properties
Instance
Singleton instance
public static T Instance { get; }
Property Value
- T