Class Singleton<T>
Inheritance
System.Object
Singleton<T>
Assembly: Eco.Shared.dll
Syntax
public class Singleton<T> : Object where T : Singleton<T>
Type Parameters
Constructors
Singleton()
Declaration
Properties
Obj
Current Singleton instance of this object.
Declaration
public static T Obj { get; }
Property Value
Methods
ClearSingleton()
Declaration
public virtual void ClearSingleton()
WithTempSingleton(Func<T>, Action)
Declaration
public static void WithTempSingleton(Func<T> objCreator, Action action)
Parameters
Type |
Name |
Description |
System.Func<T> |
objCreator |
|
System.Action |
action |
|
WithTempSingleton<TNew>(Action)
Declaration
public static void WithTempSingleton<TNew>(Action action)
where TNew : T, new()
Parameters
Type |
Name |
Description |
System.Action |
action |
|
Type Parameters
Extension Methods