Table of Contents

TTMSMCPJSONToClassProperty.DelphiName Method

Returns the Delphi-safe name for the JSON property.

API unit family: TMS.MCP.Persistence Declaring type: TTMSMCPJSONToClassProperty

Syntax

function DelphiName(ACallBack: TTMSMCPJSONToClassExportEvent; AOptions: TTMSMCPJSONToClassOptions; AFixKeyWord: Boolean = True): string;

Parameters

Name Description
ACallBack Optional callback that can adjust the property name and type.
AOptions Generation options used to format the Delphi identifier.
AFixKeyWord When True, prefixes Delphi reserved words so they remain valid identifiers.

Returns

The generated Delphi property or class name segment.