【发布时间】:2011-04-25 12:11:22
【问题描述】:
我的应用程序中有以下类
TCategory = class(TAbstractionTreeItem)
private
fName: String;
fParent: Integer;
fComment: String;
public
procedure Default; override;
protected
procedure Validate(Validation: TValidation); override;
published
[AbstractionField]
property Name: string read fName write fName;
[AbstractionField]
property Parent: Integer read fParent write fParent;
[AbstractionField]
property Comment: String read fComment write fComment;
end;
当我现在尝试通过 Delphi XE 中的高级 RTTI 获取有关信息时,作为已发布属性的可见性信息,我得到一个结果,告诉我它们只是公共的,而我添加的属性根本没有显示。
那里发生了什么?我已经尝试验证它是我尝试分析的正确类,并且在发生更改时重新编译属于它的单元。这似乎不是问题。
【问题讨论】:
标签: delphi attributes visibility delphi-xe rtti