Method pointers

Top  Previous  Next

What is translated > Method pointers

 

Delphi's event handling is implemented by means of method pointers. Such  method pointers are declared by addition of the words "of object" to a procedural type name. E.g.

 

TNotifyEvent = procedure(Sender: TObject) of object;

 

Delphi2C# converts them into delegates:

 

public delegate void TNotifyEvent(TObject Sender);

 

 

At the current state Delphi2C# doesn't deal with event handling.



This page belongs to the Delphi2C# Documentation

Delphi2C# home  Content