Chapter 10Modeling with the Class Designer

  • Using the Class Designer to create a graphical visualization of your class architecture
  • Easily generating and refactoring your classes with the Class Designer
  • Automatically implementing abstract classes and interfaces through the Class Designer

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

In Visual Studio 2013, class diagrams are constructed dynamically from the source code. 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 means that they are always up to date, which allows them to become a more integral and useful part of the development process.

This chapter looks at the Class Designer in detail and explains how you can use it to design, visualize, and refactor your class architecture.

CREATING A CLASS DIAGRAM

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 2013 provides a design surface, called the Class Designer, onto which classes can be drawn to form a class diagram. Fields, properties, and methods can then be ...

Get Professional Visual Studio 2013 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.