Here ‘s a sample code of how you can dump the declaration of a TRttiType using the
rtti. Supports classes, records and interfaces. uses
Rtti, TypInfo, Classes, Generics.Collections, SysUtils; function DumpTypeDefinition(ATypeInfo: Pointer;OnlyDeclarated:Boolean=False) :string; ...
More...