Reference TDelegate<T>
Declared in Codebot.System.pas on line 1009
TDelegate<T> allows an event publisher accept multiple subscribers
TDelegate<T> = record
public
{ Convert a delegate into an interface suitable for subscribers }
class operator Implicit(var Delegate: TDelegate<T>): IDelegate<T>;
{ Get the enumerator of subscriber's events }
function GetEnumerator: IEnumerator<T>;
{ Check is there are no subscribers }
function GetIsEmpty: Boolean;
{ Add an event handler }
procedure Add(const Handler: T);
{ Remove an event handler }
procedure Remove(const Handler: T);
{ Returns true is there a no subscribers }
property IsEmpty: Boolean read GetIsEmpty;
end;