Using the Class Designer to Refactor

The class designer enables you to view the contents of your classes and their relationships. It can also be used as a productivity tool: you can create new classes and modify existing ones directly within the designer.

Note

The class designer is covered in Chapter 6, “Introducing the Editors and Designers.”

The class designer also supports refactoring. For example, you can rename elements within your classes or change their signature and the operation will use the compiler to update references accordingly. Figure 9.5 shows renaming a class directly within the diagram. Hitting enter after this rename will update references.

FIGURE 9.5 Refactoring within the Visual Studio class designer.

Note

In the ...

Get Microsoft Visual Studio 2015 Unleashed, Third Edition 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.