System.TMethod
Aus RAD Studio API Documentation
Delphi
TMethod = record Code, Data: Pointer; public class operator Equal(const Left, Right: TMethod): Boolean; class operator NotEqual(const Left, Right: TMethod): Boolean; class operator GreaterThan(const Left, Right: TMethod): Boolean; class operator GreaterThanOrEqual(const Left, Right: TMethod): Boolean; class operator LessThan(const Left, Right: TMethod): Boolean; class operator LessThanOrEqual(const Left, Right: TMethod): Boolean; end;
C++
struct DECLSPEC_DRECORD TMethod{ public: void *Code; void *Data; static bool __fastcall _op_Equality(const TMethod &Left, const TMethod &Right); static bool __fastcall _op_Inequality(const TMethod &Left, const TMethod &Right); static bool __fastcall _op_GreaterThan(const TMethod &Left, const TMethod &Right); static bool __fastcall _op_GreaterThanOrEqual(const TMethod &Left, const TMethod &Right); static bool __fastcall _op_LessThan(const TMethod &Left, const TMethod &Right); static bool __fastcall _op_LessThanOrEqual(const TMethod &Left, const TMethod &Right); };
Inhaltsverzeichnis |
Eigenschaften
| Typ | Sichtbarkeit | Quelle | Unit | Übergeordnet |
|---|---|---|---|---|
record struct |
public | System.pas System.hpp |
System | System |
Beschreibung
Speichert die Code- und Datenfelder zur Repräsentation einer Methode.
TMethod speichert die Code- und Datenzeiger für eine Methode. Dieser Typ kann in Typumwandlungen von Methodenzeigern für den Zugriff auf die Code- und Datenanteile der Methodenzeiger eingesetzt werden.
Sie können eine TMethod-Variable füllen, indem Sie Daten als Zeiger auf ein Objekt und mit MethodAddress Code zuweisen und den Methodennamen als String-Parameter für diese Methode festlegen.