Click or drag to resize

ServiceLocatorRegisterLazySingletonT Method

Registers a concrete singleton of the given type. The instance won't be created until the first time it is resolved.

Namespace:  Archon.SwissArmyLib.Utils
Assembly:  Archon.SwissArmyLib (in Archon.SwissArmyLib.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public static Lazy<T> RegisterLazySingleton<T>()
where T : new()
Request Example View Source

Type Parameters

T
The type of the singleton.

Return Value

Type: LazyT

[Missing <returns> documentation for "M:Archon.SwissArmyLib.Utils.ServiceLocator.RegisterLazySingleton``1"]

See Also