__typeinfo

From RAD Studio
Jump to: navigation, search

Go Up to sysmac.h Index

The __typeinfo macro returns the RTTI of a class that descends from TObject.

TTypeInfo *typeInfo = __typeinfo(TMyObject); // TMyObject inherits TObject

Note: You can also use the __delphirtti (which is a keyword extension) to get the RTTI associated with a class.

For examples of __typeinfo, see:

See Also