System.TypeInfo

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function TypeInfo(T: TypeIdentifier): Pointer;

Properties

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

Description

Returns the RTTI information for a given type.

Use TypeInfo to obtain a pointer to the RTTI (Run-time Type Information) block describing a given type. TypeInfo accepts a type name as its parameter, for example Integer or TButton, and returns a pointer to a TTypeInfo record.

Note: This function is not available in C++Builder. The C++Builder counterpart is __delphirtti.

Use TypeInfo in combination with the classes and methods offered by the System.Rtti or System.TypInfo unit.

See Also