.NET Framework: Reflection

Demonstrates how to reflect against assemblies to discover type information. 

Featured Highlights

This example lets you select an assembly, then examine its metadata, including the list of its contained types. The user can additionally select an individual type and examine its members. To view the loaded assemblies, click on the 'List Loaded Assemblies' button. To view details of a particular assembly, select the assembly from the list. To view the details of a type within an assembly, select that type from the list on the bottom left.

Requirements

Requires the Trial or Release version of Visual Studio .NET Professional (or greater).

Running the Sample

One method in the routine handles events from both the assembly list box and the 'Show Detail for selected assembly' button. This is achieved by placing both events in the Handles suffix of the method.

Last Update: 7 July 2002