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);
Propriétés
Type | Visibilité | Source | Unité | Parent |
---|---|---|---|---|
function | protected | REST.JsonReflect.pas REST.JsonReflect.hpp |
REST.JsonReflect | TJSONUnMarshal |
Description
La méthode StringToTValue effectue le marshalling d'une chaîne en TValue selon le paramètre typeInfo
spécifié.
Si la conversion est impossible, la méthode déclenche une exception EConversionError.