have been struggling with this problem for a while and can't seem to find a way around it. I am using Delphi XE-2.
I need to generate Rtti Info for private/protected Methods for ALL classes in a given package.
By default Delphi seems to only generate Rtti for public and published methods.
If I add the following directive to a Unit which contains a class, then Rtti is generated for private and protected fields but only for that class.
{$RTTI METHODS([vcPublic, vcProtected, vcPrivate])}
I do not want to add this directive to every single Unit.
I added the directive to the Packages .dpk file, but it has no effect.
Thank you!