A
A
Anton Shamanov2020-07-21 19:44:51
Lazarus
Anton Shamanov, 2020-07-21 19:44:51

How to implement reflection/inspection of class structure in Lazarus/Delphi?

Are there any classes/methods for inspecting classes? For example, how to get a list of public properties/methods?
I looked at PascalScript - as far as I understand it is not suitable for reflecting ordinary pas files

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
vdem, 2020-07-21
@SilenceOfWinter

In Delphi this is called RTTI (Runtime Type Information). There are a few here.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question