TSingleton.GetInstance<T> Method

Definition

Gets the shared instance of a class.

Delphi
class function GetInstance<T>: T

Type Parameters

T

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

Returns

T