|
@@ -227,6 +227,7 @@ type
|
|
function GetBaseType: TRttiType; virtual;
|
|
function GetBaseType: TRttiType; virtual;
|
|
public
|
|
public
|
|
constructor Create(ATypeInfo : PTypeInfo);
|
|
constructor Create(ATypeInfo : PTypeInfo);
|
|
|
|
+ destructor Destroy; override;
|
|
function GetAttributes: specialize TArray<TCustomAttribute>; override;
|
|
function GetAttributes: specialize TArray<TCustomAttribute>; override;
|
|
function GetProperties: specialize TArray<TRttiProperty>; virtual;
|
|
function GetProperties: specialize TArray<TRttiProperty>; virtual;
|
|
function GetProperty(const AName: string): TRttiProperty; virtual;
|
|
function GetProperty(const AName: string): TRttiProperty; virtual;
|
|
@@ -3905,6 +3906,15 @@ begin
|
|
FTypeData:=GetTypeData(ATypeInfo);
|
|
FTypeData:=GetTypeData(ATypeInfo);
|
|
end;
|
|
end;
|
|
|
|
|
|
|
|
+destructor TRttiType.Destroy;
|
|
|
|
+var
|
|
|
|
+ attr: TCustomAttribute;
|
|
|
|
+begin
|
|
|
|
+ for attr in FAttributes do
|
|
|
|
+ attr.Free;
|
|
|
|
+ inherited;
|
|
|
|
+end;
|
|
|
|
+
|
|
function TRttiType.GetAttributes: specialize TArray<TCustomAttribute>;
|
|
function TRttiType.GetAttributes: specialize TArray<TCustomAttribute>;
|
|
var
|
|
var
|
|
i: Integer;
|
|
i: Integer;
|