且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

VSD2012-将委托添加到类设计器

更新时间:2023-12-06 17:03:28

雅克,

听起来像是您看到的是  a  UML类图( diagramName .classdiagram)与vs.a&nbsp..NET类图( diagramName .cd)的工具箱.这是两个工具箱的外观:

Sounds like you're seeing the toolbox for a UML class diagram (diagramName.classdiagram) versus a .NET class diagram (diagramName.cd). Here's what the two toolboxes look like:

UML类图与语言无关,通常用于高级可视化.如果您使用的是C#,则可以 从C#代码创建UML类图.否则,您可以使用.NET类图. ;以可视化现有代码,但每个类图的范围仅限于一个项目.

UML class diagrams are language-agnostic and generally used for high-level visualization. If you're working in C#, you can create UML class diagrams from C# code. Otherwise, you can use .NET class diagrams to visualize existing code, but each class diagram is scoped to a single project.

我怀疑您找到了其中一篇与.NET类图有关的文章:

I suspect you found one of these articles, which is about .NET class diagrams:

如何:使用类设计器创建类型

因此,如果要基于现有代码创建一个类图,则需要一个.NET类图.右键单击您的项目,然后转到添加>&ltb; 新项目> 类图.

So, if you want to create a class diagram that's based on your existing code, you'll need a .NET class diagram. Right-click your project, then go to AddNew Item > Class Diagram.