Vote UpVote

Getting the getter and setter of a property using RTTI

The Road to Delphi – Introduction One of the limitations of the TRttiProperty class is which not expose any direct relation between the property and the getter and setters. On this post we will check out how we can access to such info using the RTTI. So the aim is obtain a TRttiField and/or TRttiMethod instance to the getter and setter of the property. This will be done using a class helper like so. type TRttiPropertyHelper = class helper for TRttiProperty private function GetSetterField : TRttiField; function GetGetterField : TRttiField; public property SetterField : TRttiField read ...
Favorite? Off-Topic? Rodrigo @ 2015-09-25 21:09


Visits: 1039
Votes: 2
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Alister Christie
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


Please login or register to use this functionality.
(click on this box to dismiss)