Class Diagrams in Visual Studio.Net
Today i gave a look at a new feature of Visual Studio.Net, the Class Diagrams.
I found this new functionality really interesting for Object Oriented Programming. A lot of times i had to make really complex classes and when the project growed up it was an hard task to have clear in mind the classes hineritance, methods, events etc…
In the past i used specialized tools but they was just for drawing, they had no integration with the source code. The .Net Class Diagrams is fully integrated with the code instead. When you design a class diagram you can add fields, methods, hineritance and properties and the editor generates the source code for the classes you’re designing.
I tried to create a really unuseful class diagram as test:

Please don’t care about the classes meaning
it’s just a test.
Here you can see a base class “veicle” and specialized classes for each veicle (Cars,Trucks, Bikes etc…).
The Class Diagram Designer generates the class source code for each class you design. Double clicking on a class design you’ll access the source code to make your modifications.
I recommend to use this new functionality, it’s really timesaving for project managers and a wonderful resource to create documentations for your source code.
TAGS: Asp.net, dotnet, code snippet, seo, search engine optimization, visual studio.net, sample code, c#, vb.net























