I need to create a class diagram from my existing code. Suppose I have the following classes -
public class Person
{
public string Name { get; set;}
public int Age { get; set;}
public Address Address { get; set; }
public Education Education { get; set; }
}
public class Address
{
public string AddressLine1 { get; set; }
....
}
public class Education
{
public string CollegeName { get; set; }
....
}
I want to create a digram for Person
class like:
I know about the UML diagram but it dosen't create what I am expecting. As far as I know it only creates the inheritence hierarchy.
I am using Visual Studio 2015 community edition. Can anyone tell me the tool to create the class digram as I mentioned above?
Thanks!
C, computer programming language developed in the early 1970s by American computer scientist Dennis M. Ritchie at Bell Laboratories (formerly AT&T Bell Laboratories).
Get Started With C To start using C, you need two things: A text editor, like Notepad, to write C code. A compiler, like GCC, to translate the C code into a language that the computer will understand.
From the menu bar, click File > New > Project. In the Select a wizard window, expand C/C++, select C++ Project, and then click Next. In the Create a C++ Project window, in the Project name field, enter a name for the C++ project. From the Project type list, select Makefile Project/Empty Project, and then click Finish.
Right click on .cs file having your classes and click on View Class Diagram:
After that go to the class property you want and right click then choose Show As Association
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With