delphi – 如何发布RTL单元的私有类函数?
发布时间:2020-12-15 04:10:38 所属栏目:大数据 来源:网络整理
导读:Delphi XE3,System.Rtti.pas 我需要访问两个私有类函数,但我已经读过如果我修改RTL单元的接口部分,那么我需要重新编译所有的RTL.不适合胆小的心! 两个私有类函数在System.Rtti.pas中: class function GetNameT{: enum}(AValue: T): string; reintroduce; s
Delphi XE3,System.Rtti.pas
我需要访问两个私有类函数,但我已经读过如果我修改RTL单元的接口部分,那么我需要重新编译所有的RTL.不适合胆小的心! 两个私有类函数在System.Rtti.pas中: class function GetName<T{: enum}>(AValue: T): string; reintroduce; static; class function GetValue<T{: enum}>(const AName: string): T; static; System.Rtti.pas TRttiEnumerationType = class(TRttiOrdinalType) private function GetMaxValue: Longint; override; function GetMinValue: Longint; override; function GetUnderlyingType: TRttiType; constructor Create(APackage: TRttiPackage; AParent: TRttiObject; var P: PByte); override; {$HINTS OFF} function GetNames: TArray<string>; class function GetName<T{: enum}>(AValue: T): string; reintroduce; static; class function GetValue<T{: enum}>(const AName: string): T; static; {$HINTS ON} public property UnderlyingType: TRttiType read GetUnderlyingType; end; 解决方法
您的选择包括:
>重新编译整个RTL. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |