Intellisense and Components

Visual Web Developer automatically pops up with Intellisense when you type the names of classes, properties, or methods in Source view. You can add comments that appear in Intellisense to your custom components to make it easier for other developers to use your components.

If you add XML comments to a component, the contents of the XML comments appear automatically in Intellisense. For example, the component in Listing 17.21 includes XML comments for its class definition, property definitions, and method definition (see Figure 17.5).

Figure 17.5. Adding comments to a component.

image

Listing 17.21. Employee.cs

Note ...

Get ASP.NET 4 Unleashed 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.