Why does creating a TRttiContext in advance make my RTTI tests run faster?
问题 Linked to the original question Is it possible to get the index of class property? and answered by Remy Lebeau and RRUZ program Demo; {$APPTYPE CONSOLE} uses System.SysUtils, Winapi.Windows, System.Rtti, System.TypInfo; type TMyClass = class private function GetInteger(const Index: Integer): Integer; procedure SetInteger(const Index, Value: Integer); public property P1: Integer Index 1 read GetInteger write SetInteger; property P2: Integer Index 2 read GetInteger write SetInteger; property P3