Vote UpVote

Gaining access to private fields of a class

Mat DeLong – I should start of by saying that with great power comes great responsibility. You can use this tip to gain access to private or strict private members of a class in another unit. But should you? Say there exists a class called ‘TDSCustomServer’ and within it, there is a private field holding the following: ‘FComponentList: TDBXArrayList;’ In other words: TDSCustomServer = class abstract(TComponent) ... private FComponentList: TDBXArrayList; ... end; If you have access to the TDSCustomServer component, you may find yourself in a situation where you really want to ...
Favorite? Off-Topic? Mat DeLong @ 2011-11-08 16:45


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

Visits by Source

User Actions

Users who voted for this posting

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)