The CodeTemplateCompiler type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| CodeTemplateCompiler(String) |
Creates a new CodeTemplateCompiler instance.
| |
| CodeTemplateCompiler(ICodeTemplateInfo) |
Creates a new CodeTemplateCompiler instance.
|
Methods
| Name | Description | |
|---|---|---|
| Compile()()()() |
Compiles the specified template and outputs an assembly to the output path.
| |
| Compile(Boolean) |
Compiles the specified template and outputs an assembly to the output path.
| |
| Compile(String) |
Compiles the specified template and outputs an assembly to the output path.
| |
| Compile(String, Boolean) |
Compiles the specified template and outputs an assembly to the output path.
| |
| Compile(String, Boolean, Boolean) |
Compiles the specified template and outputs an assembly to the output path.
| |
| CreateInstance |
Creates an instance of the compiled template. You must compile the template first.
| |
| Dispose()()()() | (Inherited from DisposableBase.) | |
| Dispose(Boolean) | (Inherited from DisposableBase.) | |
| DisposeManagedResources | (Inherited from DisposableBase.) | |
| DisposeUnmanagedResources | (Inherited from DisposableBase.) | |
| Equals | (Inherited from Object.) | |
| Finalize | (Inherited from DisposableBase.) | |
| GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| ToString | Returns a string that represents the current object. (Inherited from Object.) |
Properties
| Name | Description | |
|---|---|---|
| CodeTemplateInfo |
Gets the code template information.
| |
| CompiledAssembly |
Provides access to the compiled assembly.
| |
| CompileResult | ||
| CompilerOutputWriter |
Gets or sets the compiler output writer.
| |
| Debug |
Gets or sets a value indicating whether the template should be compiled in debug mode or not.
| |
| Errors |
Gets the errors.
| |
| GeneratedAssemblySourceCode |
Provides access to the generated source code.
| |
| KeepTempFiles |
Gets or sets a value indicating whether the temp files should be kept.
| |
| LinePragmas |
Gets or sets a value indicating whether line pragmas should be output in the compiled source code.
| |
| Namespace |
Namespace that the compiled template should be a member of.
| |
| TypeName |
Gets or sets the type name of the compiled template.
|