Data.DBXJSONReflect.TJSONUnMarshal.ObjectInstance
Delphi
class function ObjectInstance(Ctx: TRTTIContext; const TypeName: string): TObject;
C++
__classmethod System::TObject* __fastcall ObjectInstance(System::Rtti::TRttiContext Ctx, const System::UnicodeString TypeName);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Data.DBXJSONReflect.pas Data.DBXJSONReflect.hpp |
Data.DBXJSONReflect | TJSONUnMarshal |
Description
Creates a new instance of an object based on the TypeName.
The ObjectInstance method creates a new instance of an object based on the TypeName. The Ctx parameter specifies the run-time context information instance. If the creation fails, ObjectInstance returns nil.