Most voted "rtti" questions
The concept is known in other languages as reflection (Reflection) and consists of a variety of information generated by the compiler about the types (classes), which can be consulted and changed at runtime.
Learn more…6 questions
Sort by count of
-
7
votes1
answer1564
viewsHow to browse a Tobjectlist property via Rtti?
my class has a Tobjectlist property: TBaseModelo = class(TInterfacedPersistent) public property ListaCamposValidacao: TObjectList<TCampoValidacao> read FListaCamposValidacao write…
-
1
votes1
answer1124
viewsHow to obtain the value of a property and how to obtain the property in which the attribute is declared?
Let’s say I’m creating an attribute like this: TCompareAttribute = class(TCustomAttribute) private FPropertyToCompare: string; public constructor Create(APropertyToCompare: string); function…
-
1
votes1
answer1245
viewsDelphi RTTI get the property value of an object that is owned by another
I am having doubts about how to obtain, via RTTI, the value of a property of an object that is owned by another. Below are two objects and their relationships. In this example I would like to get…
-
0
votes3
answers2201
viewsHow one class can inherit from one interface and another class in Delphi
I’m creating a small persistence class using RTTI. I created the attributes of fields separated by type Ex: Fieldstring[], Fieldinteger[] and etc.. At a certain point I need to go through the…
-
0
votes1
answer557
viewsRTTI Free on an object created by Invoke
I’m creating a routine to instantiate a class via RTTI and validate whether this class implements a interface. I have a test class implemented as follows: unit teste.classeTeste.uclasseTeste;…
-
0
votes1
answer30
viewsHow to remove the class name from the executable without losing dynamic_cast?
My goal is to just remove the class name from the executable, but still continue with the ability to use dynamic_cast. The problem is that if the RTTI is removed, and thus the class names, there is…