TSingleton.GetInstance<T> Method

Gets the shared instance of a class.

Namespace: Spring.DesignPatterns
public
 class function GetInstance<T: class, constructor>: T; static;

Type Parameters

T
The type of a class which must have a default constructor.

Return Value

Type: T