IValueConverter.ConvertTo Method
Overloads
Delphi
function ConvertTo(const value: TValue; const targetTypeInfo: PTypeInfo): TValue
Parameters
- value
- TValue
Rtti.TValue to convert
- targetTypeInfo
- PTypeInfo
Target Rtti.PTypeInfo structure
Returns
TValue
Returns value to type pointing
by targetTypeInfo parameter
Delphi
function ConvertTo(const value: TValue; const targetTypeInfo: PTypeInfo; const parameter: TValue): TValue
Parameters
- value
- TValue
Rtti.TValue to convert
- targetTypeInfo
- PTypeInfo
Target Rtti.PTypeInfo structure
- parameter
- TValue
Additional Rtti.TValue formatting parameter, use when possible
Returns
TValue
Returns value converted to type pointing by targetTypeInfo
parameter