2
votes
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 ...
Statistics
|
Visits by Source |
User Actions |




