QuickLib icon indicating copy to clipboard operation
QuickLib copied to clipboard

Improvement Request: Add support to TValue type converters present in Spring.ValueConverters

Open marcosgduarte opened this issue 1 year ago • 1 comments

- if rType.GetProperty(tgtprop.Name) <> nil then tgtprop.SetValue(aTgtObj,rType.GetProperty(tgtprop.Name).GetValue(aSrcObj));
+ if rType.GetProperty(tgtprop.Name) <> nil then
+ begin
+   Value := rType.GetProperty(tgtprop.Name).GetValue(aSrcObj);
+   Value.TryConvert(tgtprop.PropertyType.Handle, vTargetValue);
+   tgtprop.SetValue(aTgtObj, vTargetValue);
+ end;

marcosgduarte avatar Aug 24 '23 22:08 marcosgduarte

Could you explain your request?

exilon avatar Feb 25 '24 20:02 exilon