Data.DBXJSONReflect.TMarshalUnmarshalBase.ShouldMarshal

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: function
Visibility: public
Source:
Data.DBXJSONReflect.pas
Data.DBXJSONReflect.hpp
Unit: Data.DBXJSONReflect
Parent: TMarshalUnmarshalBase

Delphi

function ShouldMarshal(Data: TObject; rttiField: TRTTIField): Boolean;

C++

bool __fastcall ShouldMarshal(System::TObject* Data, System::Rtti::TRttiField* rttiField);

Description

Checks whether or not an object field should be marshalled based on the JSONMarshalled registration and attribute.

The ShouldMarshal method checks whether or not an object field should be marshalled based on the JSONMarshalled registration and attribute. The JSONMarshalled registration takes priority over the attribute, and both default to True.

See Also