Show: Delphi C++
Display Preferences

System.TMethod

From XE2 API Documentation
Jump to: navigation, search

Delphi

  TMethod = record
    Code, Data: Pointer;
  end;

C++

struct DECLSPEC_DRECORD TMethod{
public:
void *Code;
void *Data;
};

Contents

Properties

Type Visibility Source Unit Parent
struct
class
public
System.pas
System.hpp
System System

Description

Stores Code and Data fields to represent a method.

The TMethod type stores the Code and Data pointers for a method. This type can be used in a type cast of a method pointer to access the code and data parts of the method pointer.

You can also furnish a TMethod variable by assigning a Data pointer to an object, and assigning Code using MethodAddress, specifying the method name as a string parameter to that method.

See Also

Code Examples

Personal tools
Previous Versions
Translations