System.TypInfo.TTypeInfo
Delphi
TTypeInfo = record
Kind: TTypeKind;
Name: TSymbolName;
function NameFld: TTypeInfoFieldAccessor; inline;
{TypeData: TTypeData}
function TypeData: PTypeData; inline;
end;
C++
struct DECLSPEC_DRECORD TTypeInfo
{
public:
System::TTypeKind Kind;
TSymbolName Name;
TTypeInfoFieldAccessor __fastcall NameFld();
PTypeData __fastcall TypeData();
};
Propriétés
Type | Visibilité | Source | Unité | Parent |
---|---|---|---|---|
record struct |
public | System.TypInfo.pas System.TypInfo.hpp |
System.TypInfo | System.TypInfo |
Description
Contient les informations d'un type de données, renvoyées par TypeInfo.
La fonction TypeInfo fait partie du mécanisme RTTI (Informations de type à l'exécution) de Delphi. Elle fournit des informations d'exécution à propos d'un type de données spécifique. TypeInfo renvoie un pointeur PTypeInfo sur une valeur TTypeInfo.
TTypeInfo contient les champs suivants :
Champ | Signification |
---|---|
Kind |
La nature du type en termes RTTI. Cette valeur est requise pour sélectionner la section variant appropriée dans le TTypeData renvoyé par GetTypeData. |
Name |
Le nom du type de données. |