System.TObject.MethodName
From RAD Studio VCL Reference
Delphi Information
From System.pas
class function MethodName(Address: Pointer): string;
Unit: System
Type: method
Visibility: public
Member Of: TObject
C++ Information
From System.hpp
__classmethod System::UnicodeString __fastcall MethodName(void * Address);
Unit: System
Type: method
Visibility: public
Member Of: TObject
Description
Returns the name of a class method by address.
There are situations when it is useful to invoke an object method without hard coding the method name in advance. Call MethodAddress to dynamically retrieve the address of such a method by specifying the method name as a string.
MethodName is the opposite of this process--by supplying an Address method, the name of the method is returned as a string.