Reputation: 36664
By default, RTTI in versions below 2010 is only created for published class members.
I have read in a 2006 blog (http://hallvards.blogspot.com/2006/09/extended-class-rtti.html) that using $METHODINFO (or $M), public and published methods are included since Delphi 6. Is this correct?
The blog entry said:
"For WebSnap, the “new” $METHODINFO ON compiler directive (which was undocumented in D6 and D7) is used to generate extended RTTI for public and published methods." ... "Updated (27. Oct 2007): $METHODINFO was first available in Delphi 7, not Delphi 6."
Upvotes: 4
Views: 1295
Reputation: 24523
The new RTTI in Delphi 2010 and up supports what you want.
You're out of luck in Delphi 2009 and below.
Upvotes: 3