Code Editor

Smart tags can also appear within code. You can find one example on interfaces. Normally, implementing an interface is a fairly code-intensive task. You have to individually create a member to map to each member defined on the interface. The smart tag in this case allows you to automatically create those members using two different naming modes:

Explicit naming—Members have the name of the derived interface.

Implicit naming—Member names do not reference the name of the derived interface.

See Figure 8.11 to view this smart tag in action.

Figure 8.11 An implement interface smart tag.

image

In general, this type of smart tag is called a ...

Get Microsoft® Visual Studio® 2010 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.