Class diagrams help you to understand code a lot more quickly through visual representation. Visual Studio, by default, provides you with a one-step process to generate self-updating Class diagrams.
Right-click on “Project” in solution explorer and choose View – View class diagram. It will generate a class diagram for you. Go ahead and add new methods to the existing class and make some changes to the class. This will be reflected in the class diagram in real time.