[PATCH] Extends SetPropValue/GetPropValue making it compatible with new versions of Delphi
Original Reporter info from Mantis: silvioprog
-
Reporter name: silvioprog
Original Reporter info from Mantis: silvioprog
- Reporter name: silvioprog
Description:
Hello,
The new versions of Delphi was extended the functions 'TypInfo.SetPropValue'[1] and 'TypInfo.GetPropValue'[2]. This decision was very great, because the programmer can already has your 'PropInfo' obtained via functions like 'GetPropInfo', 'GetPropList' etc., so if 'SetPropValue/GetPropValue' research this propinfo internally, it can loses performance.
The attached patch extends this two functions, allowing the programmer to get/set property values by property info and/or property name.
Thank you!
[1] http://docwiki.embarcadero.com/Libraries/XE6/en/System.TypInfo.SetPropValue
[2] http://docwiki.embarcadero.com/Libraries/XE6/en/System.TypInfo.GetPropValue
Mantis conversion info:
- Mantis ID: 28278
- Version: 3.1.1
- Fixed in version: 3.1.1
- Fixed in revision: 32858 (#b9da082e)
- Target version: 3.0.2