Registriert seit: 12. Aug 2003
Ort: Soest
4.016 Beiträge
Delphi 10.1 Berlin Enterprise
|
AW: RTTI Enum von Propertys?
17. Jan 2015, 13:22
Delphi-Quellcode:
procedure GetAllProperties(obj: TObject);
var
context: TRttiContext;
properties: TArray<TRttiProperty>;
propertyIterator: TRttiProperty;
begin
properties := context.GetType(obj.ClassInfo).GetProperties();
for propertyIterator in properties do
WriteLn(propertyIterator.Name);
end;
|