C#代码到类图

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/9367186/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-09 07:03:16  来源:igfitidea点击:

C# code to class diagram

c#classumldiagramclass-diagram

提问by isklenar

I have a C# solution which has 2 projects in it and I need to generate class diagram from code.

我有一个 C# 解决方案,其中有 2 个项目,我需要从代码生成类图。

I know there is a built-in diagram tool in visual studio, but I'm using 2010 express and it doesn't have that. Is there any free software that is able to create that? I'm looking only for picture of class hierarchy, nothing more.

我知道visual studio中有一个内置的图表工具,但我使用的是2010 express,但它没有。有没有可以创建它的免费软件?我只在寻找类层次结构的图片,仅此而已。

采纳答案by Owais Qureshi

Try NClassit's cool in short , I have tried it myself.

试试NClass简而言之很酷,我自己也试过了。

Features:

特征:

  • Simple User Interface.
  • Free UML class diagram tool specially for C#.
  • From diagram to Code generation.
  • Classic style class diagrams.
  • Visual Studio style class diagrams ;)
  • 简单的用户界面。
  • 专为 C# 设计的免费 UML 类图工具。
  • 从图表到代码生成。
  • 经典风格的类图。
  • Visual Studio 风格的类图;)

Nclass Class Diagram Tool

Nclass 类图工具

NOTE:If you are a student then your school or university can provide you Visual Studio Professional edition through dreamspark program.

注意:如果您是学生,那么您的学校或大学可以通过 Dreamspark 程序为您提供 Visual Studio 专业版。

回答by luiseduardohd

This reflexive class diagram creation tool seems useful :

这个自反类图创建工具似乎很有用:

http://www.codeproject.com/Articles/17823/Reflective-Class-Diagram-Creation-Tool

http://www.codeproject.com/Articles/17823/Reflective-Class-Diagram-Creation-Tool

It only needs dll files to works.

它只需要 dll 文件即可工作。