Porting from Visual Studio to Delphi XE10 : I am porting some kind of code from Visual Studio to Delphi XE10.

Wondering how we should translate the following construct:

    public event PreviewReadyDelegate PreviewReady
        {
            add     { Scheduler.AddOrRemoveEvent(() => { _previewReady += value; }); }
            remove  { Scheduler.AddOrRemoveEvent(() => { _previewReady -= value; }); }
        }

Help appreciated.