0
votes

delphi – VCL events with anonymous methods – what do you think about this implementation? – Stack Overflow
The Wiert Corner
– A long time ago, Pablo Vizcay a.k.a. [WayBack] pragmatic_programmer wrote some cool code at [WayBack] delphi – VCL events with anonymous methods – what do you think about this implementation? – Stack Overflow. I still think it’s a very neat solution to bind method references to events. type TNotifyEventDispatcher = class(TComponent) protected FClosure: TProc<TObject>; procedure OnNotifyEvent(Sender: TObject); public class function Create(Owner: TComponent; Closure: TProc<TObject>): TNotifyEvent; overload; function Attach(Closure: ...
Statistics
|
Visits by Source |
User Actions |