Class Singleton<T>
Assembly: SociallyDistant.Framework.dll
Syntax
public sealed class Singleton<T> where T : class
Type Parameters
Properties
Instance
Declaration
public T? Instance { get; }
Property Value
Methods
MustGetInstance()
Declaration
public T MustGetInstance()
Returns
MustGetInstance(out T)
Declaration
public void MustGetInstance(out T result)
Parameters
Type |
Name |
Description |
T |
result |
|
SetInstance(T?)
Declaration
public void SetInstance(T? newInstance)
Parameters
Type |
Name |
Description |
T |
newInstance |
|