RTTI on objects in Delphi -


i'm trying parse objects xml in delphi, read calling object's classinfo method rtti info.

the thing is, apparently works tpersistent objects. otherwise, have add compiler directive {$m+} source code compiler generate rtti info.

so happily added directive, find that, if did return classinfo call (it used return nil), cannot retrieve class' properties, fields or methods it. it's created object empty.

any idea missing here? thanks!

did put properties , methods published section?

besides that, 'classical' rtti ($typeinfo on) information on properties, not on methods. need 'extended' rtti ($methodinfo on) those.

good starting point extended rtti: david glassborow on extended rtti

(who believe minute finished writing code uses extended rtti , decided browse stack overflow little:))


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -