Exercise 3: Analyzing External Assemblies Using Architecture Explorer
- In this exercise, you will learn how to load and navigate external .NET assemblies. This can help you gain insight into the architecture of frameworks or applications for which you do not have the original project or source files.
Select the Select Files option from Architecture Explorer. This allows you to load compiled .NET assemblies and analyze them as you already have done with the Class and Solution Views.
Figure 37
Select Files view allows you to load and navigate any .NET assembly
- In the File Name box, enter “c:\windows\microsoft.net\framework\v4.0.30319” and press the Enter key.
If the v4.0.30319 directory is not available, select the most recent one available.
- In the File Name box, enter “System.Data.dll” and select the Open button to continue.
Select the System.Data.dll file to view its types.
Figure 38
iewing System.Data.dll types
Select the Filter button at the top of the types list and select the check box for Class and the check box for IsPublic.
Figure 39
Creating a filter for public classes
- Press the OK button to see the list of public classes in the System.Data.dll assembly.
Enter “Sql” into the filter box at the top of the current type list and press Enter so that we can view types that contain that text.
Figure 40
Filtering with custom text
Select all of the listed types and press the Create New Graph button.
Figure 41
DGML diagram showing System.Data.dll and its classes
To give feedback please write to VSKitFdbk@Microsoft.com
Copyright © 2010 by Microsoft Corporation. All rights reserved.