Which of the following is not true about Visual Studio 2010 text templates?
-
Text template is a mixture of text blocks and control logic that can generate a text file
-
Text template can generate file that can be text of any kind, such as a Web page, or a resource file, or program source code in any language
-
Text templates can be used at run time to produce part of the output of an application
-
Text templates cannot be used for code generation
-
Whenever you edit the template during development, the template is transformed to a class which is compiled as part of the application
The question asks which statement is NOT true. Text templates (T4) can generate text files of any kind (A is true), including web pages and source code (B is true), and can be used at runtime (C is true). However, D states 'Text templates cannot be used for code generation' - this is FALSE. Text templates ARE specifically designed for code generation, making D the correct answer to 'what is NOT true'.