System.TypInfo.GetTypeName

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

function GetTypeName(TypeInfo: PTypeInfo): string;

C++

extern DELPHI_PACKAGE System::UnicodeString __fastcall GetTypeName(PTypeInfo TypeInfo);

Properties

Type Visibility Source Unit Parent
function public
System.TypInfo.pas
System.TypInfo.hpp
System.TypInfo System.TypInfo

Description

Returns the name of the type from its type information record.

GetTypeName utilises Object Pascal's RTTI (Run Time Type Information) to return the name of a type as defined in the code.

TypeInfo is the type information record that describes the type for which the name must be obtained. You can obtain the type information for a type by calling the TypeInfo function in Object Pascal or the __delphirtti operator in C++.

See Also