Browse Source

* Added TrttiType.GetProperties

Michaël Van Canneyt 3 years ago
parent
commit
42a493f8e3
1 changed files with 7 additions and 2 deletions
  1. 7 2
      packages/rtl/rtti.pas

+ 7 - 2
packages/rtl/rtti.pas

@@ -278,7 +278,7 @@ type
     function GetMethod(const aName: String): TRttiMethod; virtual;
     function GetProperty(const AName: string): TRttiProperty; virtual;
     //function GetIndexedProperty(const AName: string): TRttiIndexedProperty; virtual;
-
+    function GetProperties: TRttiPropertyArray; virtual;
     function GetDeclaredProperties: TRttiPropertyArray; virtual;
     //function GetDeclaredIndexedProperties: TRttiIndexedPropertyArray; virtual;
     function GetDeclaredMethods: TRttiMethodArray; virtual;
@@ -323,7 +323,7 @@ type
     function GetMethod(const aName: String): TRttiMethod; override;
     function GetMethods: TRttiMethodArray; override;
     function GetMethods(const aName: String): TRttiMethodArray; override;
-    function GetProperties: TRttiPropertyArray;
+    function GetProperties: TRttiPropertyArray; override;
     function GetProperty(const AName: string): TRttiProperty; override;
 
     property StructTypeInfo: TTypeInfoStruct read GetStructTypeInfo;
@@ -1851,6 +1851,11 @@ begin
   Result:=nil;
 end;
 
+function TRttiType.GetProperties: TRttiPropertyArray;
+begin
+  Result:=nil;
+end;
+
 function TRttiType.GetProperty(const AName: string): TRttiProperty;
 begin
   Result:=nil;