Documenting your types

One of the files that you can add to a Visual Studio project is Class Diagram.

From the Project menu, choose Add New Item or press Ctrl + Shift + A. In the Search box, enter diagram and change the filename to PacktLibrary.cd, as shown in the following screenshot:

Documenting your types

In the View menu, choose Class View. In the Class View window, expand Ch06_PacktLibrary, expand Packt.CS6, and then drag and drop the Person file into the middle of the class diagram, as shown in the following screenshot:

Documenting your types

In the following diagram, you will see the Person ...

Get C# 6 and .NET Core 1.0: Modern Cross-Platform Development 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.