Class Singleton<T>
Singleton pattern implementation.
Inheritance
System.Object
Singleton<T>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: StansAssets.Foundation.Patterns
Assembly: cs.temp.dll.dll
Syntax
public abstract class Singleton<T>
where T : Singleton<T>, new()
Type Parameters
Name | Description |
---|---|
T |
Properties
Instance
Returns a singleton class instance.
Declaration
public static T Instance { get; }
Property Value
Type | Description |
---|---|
T |