System.JSON.TJSONMapper.ToString
Delphi
function ToString(const AValue: T; AFormatIndent: Integer = 0): string; reintroduce; overload;
function ToString(const AValue: TArray<T>; AMaxCount: NativeInt = -1; AFormatIndent: Integer = 0): string; reintroduce; overload;
C++
HIDESBASE System::UnicodeString __fastcall ToString(const T AValue, int AFormatIndent = 0x0)/* overload */;
HIDESBASE System::UnicodeString __fastcall ToString(const System::DynamicArray<T> AValue, System::NativeInt AMaxCount = 0xffffffff, int AFormatIndent = 0x0)/* overload */;
Propriétés
Type | Visibilité | Source | Unité | Parent |
---|---|---|---|---|
function | public | System.JSON.pas System.JSON.hpp |
System.JSON | TJSONMapper |
Description
Renvoie une chaîne contenant le nom de la classe.
System.JSON.TJSONMapper.ToString hérite de System.TObject.ToString. Tout le contenu en-dessous de cette ligne se réfère à System.TObject.ToString.
Renvoie une chaîne contenant le nom de la classe.
Par défaut, la méthode ToString renvoie une chaîne contenant le nom de classe de l'instance en cours d'appel.
Exemple : L'appel de ToString sur une instance de TButton renvoie une chaîne contenant "TButton".
Remarque: ToString a été conçue pour être redéfinie dans les classes dérivées utilisateur, afin de fournir des objets consommateur avec une représentation chaîne.