QuickLib
QuickLib copied to clipboard
Improvement Request: Add support to TValue type converters present in Spring.ValueConverters
- 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;
Could you explain your request?