Browsing Objects

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.

Image

FIGURE 5.15 The Object Browser.

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.


Description Pane

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:

Image The name of the selected object

Image The name of the parent of the selected object

Image 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.

Image

FIGURE 5.16 The description pane.


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.


..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset