Chapter 15. Reflection API

IN THIS CHAPTER

Reflection is the .NET way to obtain metadata information about classes and types. This is similar in nature to Delphi’s runtime type information (RTTI), although the implementation is substantially different. Metadata is provided via the classes defined in the System.Reflection namespace.

Reflection offers more capabilities than just retrieving metadata information. Through Reflection, you can instantiate various classes, invoke their methods, get and set member values, define and create new classes, dynamically add types to an assembly, and more. Another powerful ...

Get Delphi for .NET Developer’s Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.