IValueConverter.TryConvertTo Method
Overloads
Delphi
function TryConvertTo(const value: TValue; const targetTypeInfo: PTypeInfo; var targetValue: TValue): Boolean
Parameters
- value
- TValue
Rtti.TValue to convert
- targetTypeInfo
- PTypeInfo
Target Rtti.PTypeInfo structure
- targetValue
- TValue
Target Rtti.TValue var parameter
Returns
Boolean
Returns System.Boolean, True if converting with success
Delphi
function TryConvertTo(const value: TValue; const targetTypeInfo: PTypeInfo; var targetValue: TValue; const parameter: TValue): Boolean
Parameters
- value
- TValue
Rtti.TValue to convert
- targetTypeInfo
- PTypeInfo
Target Rtti.PTypeInfo structure
- targetValue
- TValue
Target Rtti.TValue var parameter
- parameter
- TValue
Additional Rtti.TValue formatting parameter, use when possible
Returns
Boolean
Returns System.Boolean, True if converting with success