System.CodeDom.Compiler 命名空间

System.CodeDom.Compiler 命名空间包含了这样一些类型:它们的用途是对所支持编程语言的源代码的生成和编译进行管理。 The System.CodeDom.Compiler namespace contains types for managing the generation and compilation of source code in supported programming languages. 每个代码生成器都可以基于代码文档对象模型 (CodeDOM) 源代码模型(由 System.CodeDom 命名空间提供的元素组成)的结构来生成使用某种特定的编程语言的源代码。 Code generators can each produce source code in a particular programming language based on the structure of Code Document Object Model (CodeDOM) source code models consisting of elements provided by the System.CodeDom namespace.

CodeCompiler

提供 ICodeCompiler 接口的示例实现。Provides an example implementation of the ICodeCompiler interface.

CodeDomProvider

CodeDomProvider 实现提供基类。Provides a base class for CodeDomProvider implementations. 此类为抽象类。This class is abstract.

CodeGenerator

提供 ICodeGenerator 接口的示例实现。Provides an example implementation of the ICodeGenerator interface. 此类为抽象类。This class is abstract.

CodeGeneratorOptions

表示代码生成器使用的一组选项。Represents a set of options used by a code generator.

CodeParser

提供 ICodeParser 接口的空实现。Provides an empty implementation of the ICodeParser interface.

CompilerError

表示编译器错误或警告。Represents a compiler error or warning.

CompilerErrorCollection

表示 CompilerError 对象集合。Represents a collection of CompilerError objects.

CompilerInfo

表示语言提供程序的配置设置。Represents the configuration settings of a language provider. 此类不能被继承。This class cannot be inherited.

CompilerParameters

表示用于调用编译器的参数。Represents the parameters used to invoke a compiler.

CompilerResults

表示从编译器返回的编译结果。Represents the results of compilation that are returned from a compiler.

Executor

为调用编译器提供命令执行功能。Provides command execution functions for invoking compilers. 此类不能被继承。This class cannot be inherited.

GeneratedCodeAttribute

标识由工具生成的代码。Identifies code generated by a tool. 此类不能被继承。This class cannot be inherited.

IndentedTextWriter

提供可根据 Tab 字符串标记缩进新行的文本编写器。Provides a text writer that can indent new lines by a tab string token.

TempFileCollection

表示临时文件的集合。Represents a collection of temporary files.

接口

ICodeCompiler

定义用于调用源代码编译的接口或使用指定编译器的 CodeDOM 树。Defines an interface for invoking compilation of source code or a CodeDOM tree using a specific compiler.

ICodeGenerator

定义用于生成代码的接口。Defines an interface for generating code.

ICodeParser

定义用于将代码语法分析到 CodeCompileUnit 中的接口。Defines an interface for parsing code into a CodeCompileUnit.

枚举

GeneratorSupport

定义用于确定代码生成器是否支持特定代码元素类型的标识符。Defines identifiers used to determine whether a code generator supports certain types of code elements.

LanguageOptions

定义指示语言的特殊功能的标识符。Defines identifiers that indicate special features of a language.