How to access private methods without helpers?

If there is extended RTTI info generated for the class private members – fields and/or methods you can use it to gain access to them. Of course, accessing through RTTI is way slower than it was through class helpers. Accessing methods: var Base: TBase2; Method: TRttiMethod; Method := TRttiContext.Create.GetType(TBase2).GetMethod(‘UsefullButHidden’); Method.Invoke(Base, []); Accessing variables: var Base: … Read more