用UML表示代码元素有许多好处。
There are many benefits of representing code elements in UML.
通过双击这些元素,您可以到达源文件中相应的代码元素。
By double-clicking these elements, you can reach the corresponding code elements in the source files.
调用(Invocation)——调用或执行方法和其他代码元素时的点。
Invocation — Points when methods and other code elements are called or executed.
使用属性标记代码元素的能力揭示了您的意图,即让一些外部因素对后面的代码起作用。
The ability to mark code elements with attributes declares your intent that something external operates on the code that follows.
在该过程的最后,我们将能够通过可溯性链接将高层次的业务元素和系统功能链接到代码元素上。
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.
获取或设置与代码元素关联的注释。
获取一个指定代码元素的完全限定名。
从包含代码元素的源文档派生出注释文本。
The comment text is derived from the source document that contains the code element.
从源文件中移除代码元素,并在它的位置上添加新的代码元素。
Removes a code element from the source file, and adds a new one in it's place.
定义用于在设计时动态创建、更新和移除某一类型的代码元素的方法。
Defines methods to dynamically create, update and remove code elements for a type at design time.
逆向工程中的一个关键问题是,著名的“概念分配问题”——也就是,领域概念到源代码元素的映射。
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.
泛型的使用使您的代码库更容易维护,尤其当代码库不断增长,以及将代码元素转换为可重复使用的库时。
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.
图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.
应用推荐