Download StarUML from the official website, free to use, address
public class RelatedClass
{
private int id;
}
public class BaseClass
{
public RelatedClass relatedClass;
protected int baseParam;
protected void BaseFunc() {
}
}
public interface IMove
{
public void Move();
}
public class ClassA : BaseClass, IMove
{
int age;
protected void AFunc() {
}
public void Move() {
}
}
public class ClassB : BaseClass
{
string name;
protected void BFunc() {
}
}
Write some simple code for testing, put them in different files
Put all code files into a folder
Click Reverse Code in StarUML, select the folder just now
Generate a directory structure on the right, click CsharpReverse
Click Overview Expanded to generate a code class diagram
There are redundant connections after generation, modify the directory structure on the right and regenerate
Right-click an element, you can set to display or hide some things in Format, such as hiding fields inherited from the base class, method