TValueHelper.TryToType<T> Method
Overloads
| TryToType<T>(T) |
Tries to convert the stored value. Returns false when the conversion is not possible. |
| TryToType<T>(T, TFormatSettings) |
Tries to convert the stored value using the specified format settings. Returns false when the conversion is not possible. |
Tries to convert the stored value. Returns false when the conversion is not possible.
Delphi
function TryToType<T>(out targetValue: T): Boolean
Type Parameters
- T
Parameters
- targetValue
- T
Returns
Boolean
Tries to convert the stored value using the specified format settings. Returns false when the conversion is not possible.
Delphi
function TryToType<T>(out targetValue: T; const formatSettings: TFormatSettings): Boolean
Type Parameters
- T
Parameters
- targetValue
- T
- formatSettings
- TFormatSettings
Returns
Boolean