WHAT'S IN THIS CHAPTER?
Using the Class Designer to create a graphical visualization of your class architecture
Easily generating and refactoring your classes with the Class Designer
Using the Modeling Power Toys for Visual Studio 2010 add-in to better work with large class hierarchies
Traditionally, software modeling has been performed separately from coding, often during a design phase that is completed before coding begins. More often than not, the modeling diagrams that are constructed during design are not kept up to date as the development progresses, and they quickly lose their value as design changes are inevitably made.
The Class Designer in Visual Studio 2010 brings modeling into the IDE, as an activity that can be performed at any time during a development project. Class diagrams are constructed dynamically from the source code, which means that they are always up to date. Any change made to the source code is immediately reflected in the class diagram, and any change to the diagram is also made to the code.
This chapter looks at the Class Designer in detail and explains how you can use it to design, visualize, and refactor your class architecture.
The design process for an application typically involves at least a sketch of the classes that are going to be created and how they interact. Visual Studio 2010 provides a design surface, called the Class Designer, onto which classes can be drawn to form a class ...