Click or drag to resize

ServiceLocatorRegisterSingletonT Method (T)

Registers a specific instance to be a singleton for its concrete type.

Namespace:  Archon.SwissArmyLib.Utils
Assembly:  Archon.SwissArmyLib (in Archon.SwissArmyLib.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public static void RegisterSingleton<T>(
	T instance
)
Request Example View Source

Parameters

instance
Type: T
The instance to register as a singleton.

Type Parameters

T
The type of the singleton.
See Also