The Object Browser consists of a toolbar and three different panes: an objects pane, a members pane, and a description pane. Again, the similarity here to the Class View window is obvious. The toolbar, objects pane, and members pane function identically to the Class View objects pane and the members pane. You click down through the tree view to view each object’s members; the toolbar aids in navigating deep trees by providing a Forward and Back button. Figure 5.15 shows the Object Browser in action.
The hierarchical relationships, icons, and actions possible within the panes are the same (therefore, we won’t rehash them here). The description pane, however, is a new concept.
Note
You can quickly access the MSDN help topic for any given object or member by selecting an item in the members pane and then pressing the F1 key.
When an item is selected in either the Object Browser’s objects pane or the members pane, the description pane provides detailed information about the selected item. The data provided is quite extensive and includes the following:
The name of the selected object
The name of the parent of the selected object
Code comments and inline help associated with the selected object
Where possible, the description pane embeds hyperlinks within the data that it displays to enable you to easily navigate to related items. For example, a declared property of type string might show the following description:
public string SystemContextId { set; get; }
Member of Contoso.Fx.Integration.Specialized.ContextToken
Figure 5.16 shows how this property will display within the description pane. Note the use of hyperlinking: clicking the string identifier navigates to the string data type within the Object Browser window. Similarly, clicking the Contoso.Fx.Integration.ContextToken hyperlink navigates the browser to the class definition for the ContextToken
class.
Tip
You can click an assembly in the Objects pane and quickly add it as a reference to the current project by clicking the Add to References button located on the Object Browser’s toolbar.