Click or drag to resize

GenericSingletonProviderGetInstanceT(Boolean) Method

Returns the only instance of the desired class. This instance is created beforehand the first time it is called.

Namespace: NetEti.Globals
Assembly: NetEti.Global (in NetEti.Global.dll) Version: 1.0.0+ad672dc5430e1683eae7461ce3945c8e9dce1c49
Syntax
public static T GetInstance<T>(
	
	out bool newInstance
)
where T : class

Parameters

newInstance  Boolean
True if the returned instance has just been created.

Type parameters

T
Type of class requested

Return value

T
An instance of the requested class as a singleton
See also