用UML表示代码元素有许多好处。
There are many benefits of representing code elements in UML.
获取或设置与代码元素关联的注释。
获取一个指定代码元素的完全限定名。
从包含代码元素的源文档派生出注释文本。
The comment text is derived from the source document that contains the code element.
通过双击这些元素,您可以到达源文件中相应的代码元素。
By double-clicking these elements, you can reach the corresponding code elements in the source files.
该元素的文本值指定的名称将用于参考在代码元素的文字。
The text value of this element specifies the name that you will use to reference the literal in the Code element .
从源文件中移除代码元素,并在它的位置上添加新的代码元素。
Removes a code element from the source file, and adds a new one in it's place.
调用(Invocation)——调用或执行方法和其他代码元素时的点。
Invocation — Points when methods and other code elements are called or executed.
定义用于在设计时动态创建、更新和移除某一类型的代码元素的方法。
Defines methods to dynamically create, update and remove code elements for a type at design time.
使用属性标记代码元素的能力揭示了您的意图,即让一些外部因素对后面的代码起作用。
The ability to mark code elements with attributes declares your intent that something external operates on the code that follows.
请记住,这代码元素如下管类型代码和代码的变化,总是前两个代码中的顺序码。
Remember, this code element follows the tube type code and the change code, which are always the first two codes in the code sequence.
在该过程的最后,我们将能够通过可溯性链接将高层次的业务元素和系统功能链接到代码元素上。
At the end of this process, we will be able to link the high-level business elements and system functionality to code elements through traceability links.
如果您发现用标准工具您不能做您需要做的,那么问问您自己您是否可以使用定制代码元素做您需要做的。
If you find that you can't do what you need with the standard tools, ask yourself if you can do what you need with a custom code element.
泛型的使用使您的代码库更容易维护,尤其当代码库不断增长,以及将代码元素转换为可重复使用的库时。
The use of generics makes your code base much more maintainable, especially as it grows and you turn code elements into reusable libraries.
不保证其名称遵循此约定的代码元素的行为,并且这类行为在将来发布的版本中可能会有所更改。
The behavior of code elements whose names follow this convention are not guaranteed and are subject to change in future releases.
逆向工程中的一个关键问题是,著名的“概念分配问题”——也就是,领域概念到源代码元素的映射。
One of the key problem in reverse-engineering is the well-known "concept assignment problem" -- i.e., the mapping of domain concepts to elements of the source code.
这个映射模型能够在UML-to-C#转换构型中被指定,这个转换保留着现有的文件中的代码元素的构成。
This mapping model can be specified in a UML-to-C# transformation configuration so that the transformation retains the existing organization of code elements among files.
这个框架的最新版本正在将约定/反映方法转变为外部配置,通过外部配置将用户可见的属性和操作映射为代码元素。
The latest versions of this framework are moving away from the convention/reflection method to an external configuration that maps user-visible attributes and operations to the code elements.
在此过程中,它通过确定注释是与代码元素相接触还是用空白行分隔,在命令行语法之前保持任何一段缩进。
In the process, it maintains any indentation prior to line-oriented syntax by determining whether the comment touches the code element or is separated by a blank line.
图5当你为你的代码元素添加了XML注释后,你可以立即得到其智能感知反馈,正如这个工具提示所展示的那样。
Figure 5. This tool tip shows the immediate IntelliSense feedback you get when you add XML Comments to your code elements.
符号重命名工具提供了一种简单易用的全局更新名称的方法,有助于减轻重命名代码元素的繁重工作,并降低引入额外语法错误的风险。
The symbolic renaming tool helps ease the pain of renaming code elements-and removes the risk of introducing unwanted syntax errors-by providing a simple-to-use method for globally updating names.
符号重命名工具提供了一种简单易用的全局更新名称的方法,有助于减轻重命名代码元素的繁重工作,并降低引入额外语法错误的风险。
The symbolic renaming tool helps ease the pain of renaming code elements-and removes the risk of introducing unwanted syntax errors-by providing a simple-to-use method for globally updating names.
应用推荐