第二个步骤是T4的引擎编译转换类为一个程序集并执行该代码,以产生了输出文本文件。
In the second step, the T4 engine compiles the transformation class into an assembly and executes the code, generating an output text file.
你可以把这个类想象成代表了一个实际的文档,比如一个html页面,一个PD f文档,或者一个文本文件。
You can think of this class as a virtual document, such as an HTML page, a PDF file, or a text file.
保存并编译这个类,然后打开第二个文本文件创建来显示这个applet的html页面,如清单4所示。
Save the class and compile it, then open a second text file to create the HTML page that displays the applet, as shown in Listing 4.
实际上,您最终可以使用CharBuffer这个新类,它对文本文件实现CharSequence。
In practice, you end up with a new class called CharBuffer, which implements CharSequence over a text file.
相反,RationalPerformance Testerdatapool类读取的文本文件中包含要使用的数据池条目。
Instead, the Rational Performance Tester DataPool class reads text files that contain the data pool items to use.
以下这个类提供了文本文件的包装器,在遍历它的时候,它将列出文件中的每行内容。
This class provides a wrapper over a text file that lists each line of a file as it is iterated over.
这个类如清单2 所示,负责按名称从文本文件中查找客户。
This class, shown in Listing 2, is responsible for finding a customer by name from within a flat file.
XML和资源定义(比如properties文件)归为这一类,但类似纯文本文件则不属于这一类。
XML and resource definitions (i.e. properties files) fall into this category, but e.g. plain text files do not.
相比之下,butterflyxmlfile类将概念和一些功能添加到纯文本文件的概念和功能中(参见清单6)。
In contrast, the ButterflyXmlFile class adds both a concept and a bit of functionality to the concept and functionality of a plain file (see Listing 6).
相比之下,butterflyxmlfile类将概念和一些功能添加到纯文本文件的概念和功能中(参见清单6)。
In contrast, the ButterflyXmlFile class adds both a concept and a bit of functionality to the concept and functionality of a plain file (see Listing 6).
应用推荐