简体   繁体   English

C#类/对象可视化软件

[英]C# Class/Object visualisation software

In Visual Studio 2005 and prior you could export your code to Visio and view the relationships between the objects and what methods, properties and fields it had. 在Visual Studio 2005及更早版本中,您可以将代码导出到Visio,并查看对象之间的关系以及对象具有的方法,属性和字段。 This was great as it allowed you to tweak the appearance to improve the look. 很棒,因为它允许您调整外观以改善外观。

In VS 2008 that option is gone, replaced (supposedly) with the class diagram system. 在VS 2008中,该选项已消失,被类图系统替换(据说)。 It is functional but not pretty. 它是实用的,但不是很漂亮。

What I am looking for is some software that allows me to visualise in a prettier way or at least provide me with enough options to filter, arrange and so on so that I could touch it up in something else. 我正在寻找的是一些软件,该软件可以让我以更漂亮的方式进行可视化,或者至少为我提供足够的选项来进行过滤,排列等,以便可以在其他方面进行修饰。

Do you require the software to be free? 您需要该软件免费吗? If not, you might consider a UML tool like Sparx Enterprise Architect . 如果没有,您可以考虑使用Sparx Enterprise Architect之类的UML工具。 It can import your code, and has two add-ons that go further in terms of Visual Studio integration. 它可以导入您的代码,并具有两个附加组件,它们在Visual Studio集成方面更进一步。

Visual Studio 2010 Ultimate supports UML class, sequence, component, use case, and activity diagrams. Visual Studio 2010 Ultimate支持UML类,序列,组件,用例和活动图。 It also supports creating sequence, dependency graphs, and layer diagrams from code. 它还支持根据代码创建序列,依赖图和层图。 Other tools include Architecture Explorer, which lets you browse and explore your solution. 其他工具包括架构浏览器,可让您浏览和探索解决方案。

For more info, see the following links: 有关更多信息,请参见以下链接:

To download the RC release, visit: Microsoft Visual Studio 2010 Ultimate RC 要下载RC版本,请访问: Microsoft Visual Studio 2010 Ultimate RC

To see the RC documentation, see Modeling the Application . 要查看RC文档,请参阅建模应用程序

To discuss these tools, visit the Visual Studio 2010 Architectural Discovery & Modeling Tools forum. 要讨论这些工具,请访问Visual Studio 2010体系结构发现和建模工具论坛。

您尝试过PowerToys吗?

NDepend is certainly the .NET tool you are looking for. NDepend当然是您正在寻找的.NET工具。 It comes with a dependency graph coupled with a dependency matrix. 它带有一个依赖图和一个依赖矩阵。 You can try NDepend straight on your code by downloading the free Trial Edition . 您可以通过下载免费的试用版直接在代码上尝试NDepend。

More on NDepend Dependency Graph 有关NDepend依赖图的更多信息 在此处输入图片说明

More on NDepend Dependency Matrix : 有关NDepend依赖矩阵的更多信息 在此处输入图片说明

Disclaimer: I am part of the tool team 免责声明:我是工具团队的一员

Not your answer, but related... 不是您的答案,而是相关的...

Codeplex's VisioAutoExt library: http://www.codeplex.com/visioautoext Codeplex的VisioAutoExt库: http : //www.codeplex.com/visioautoext

Visio ActiveX component: http://www.c-sharpcorner.com/UploadFile/mgold/VisioInDotNet12032006222024PM/VisioInDotNet.aspx Visio ActiveX组件: http : //www.c-sharpcorner.com/UploadFile/mgold/VisioInDotNet12032006222222PM/VisioInDotNet.aspx

当我在Codeplex中搜索代码时,我发现此http://vsdm.codeplex.com/可能会对您有所帮助。

使用VS2005和VS2008,您可以选择设计自己的建模语言(DSL),在这里您可以选择模型的呈现方式,如果只是为了使图表看起来更好一点,这将是一笔巨大的投资,但确实可以为您提供带有自定义如何从模型生成代码的选项。

You may have tried PowerDesigne r, it runs under Eclipse through a plugin and it also supports Visual Studio. 您可能已经尝试过PowerDesigne r,它通过插件在Eclipse下运行,并且还支持Visual Studio。 The only downside is that it only works on Windows. 唯一的缺点是它仅适用于Windows。

Another application for modeling is System Architect from IBM (Popkin). 另一个用于建模的应用程序是IBM(Popkin)的System Architect It has been used by some major corporations and is still maintained. 一些主要公司已使用它,并且仍在维护中。

There is a decent, free version of a UML diagramming tool called Argos here http://argouml.tigris.org/features.html . http://argouml.tigris.org/features.html上有一个名为Argos的UML图表绘制工具的免费版本。 Out of the box it can both forward and reverse engineer Java, I'm fairly certain there are add-ins for Visual Studio that help support forward and reverse engineering of C# code. 它具有开箱即用的功能,可以同时对Java进行正向和反向工程,我敢肯定,Visual Studio的外接程序可以帮助支持C#代码的正向和反向工程。 I would look into that. 我会调查一下。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM