Skip to main content
Table of Contents

TTMSFNCJSONToClassProperty.DelphiName Method

Returns the Delphi-safe name for the JSON property.

API unit family: TMSFNCPersistence Declaring type: TTMSFNCJSONToClassProperty

Syntax

FMX.TMSFNCPersistence.hppPascalC++
function DelphiName(ACallBack: TTMSFNCJSONToClassExportEvent; AOptions: TTMSFNCJSONToClassOptions; AFixKeyWord: Boolean = True): string;
System::UnicodeString __fastcall DelphiName(_di_TTMSFNCJSONToClassExportEvent ACallBack, const TTMSFNCJSONToClassOptions &AOptions, bool AFixKeyWord = true);

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.