REST.JsonReflect.TJSONUnMarshal.StringToTValue
Delphi
function StringToTValue(Value: string; typeInfo: PTypeInfo): TValue;
C++
System::Rtti::TValue __fastcall StringToTValue(System::UnicodeString Value, System::Typinfo::PTypeInfo typeInfo);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | REST.JsonReflect.pas REST.JsonReflect.hpp |
REST.JsonReflect | TJSONUnMarshal |
Description
The StringToTValue method marshals a string into a TValue according to the specified typeInfo
.
In case the conversion is not possible, it throws an EConversionError exception.