[This is preliminary documentation and is subject to change.]
The TemplateCompiler type exposes the following members.Constructors
Name | Description | |
---|---|---|
![]() | TemplateCompiler | Initializes a new instance of the TemplateCompiler class |
![]() | TemplateCompiler( ITemplateSource ) | Initializes a new instance of the TemplateCompiler class |
![]() | TemplateCompiler(IEnumerable ITemplateSource ) | Initializes a new instance of the TemplateCompiler class |
Methods
Name | Description | |
---|---|---|
![]() | Compile |
Performs compilation if it has not already been performed
|
![]() | Configure | |
![]() | Destructor | (Overrides DisposableObject Destructor .) |
![]() | Dispose |
Deterministically disposes object. DO NOT OVERRIDE this method, override Destructor() instead
(Inherited from DisposableObject.) |
![]() | DoCompileCode |
Override to perform compilation of code into assembly
|
![]() | DoCompileTemplateSource |
Override to perform code generation from template source into code
|
![]() | DoConfigure |
Override to perform custom configuration
|
![]() | EnsureNotCompiled |
Throws an exception if this instance has already been compiled
|
![]() | EnsureObjectNotDisposed |
Checks to see whether object dispose started or has already been disposed and throws an exception if Dispose() was called
(Inherited from DisposableObject.) |
![]() | ![]() | Determines whether the specified object is equal to the current object. (Inherited from ![]() |
![]() | ExcludeTemplateSource |
Exclude template source from compilation
|
![]() | Finalize | (Inherited from DisposableObject.) |
![]() | GenerateUniqueName |
Generates unique identifier suitable for use in code per compiler instance
|
![]() | GetEnumerator | |
![]() | ![]() | Serves as the default hash function. (Inherited from ![]() |
![]() | ![]() | Gets the (Inherited from ![]() ![]() |
![]() | IncludeTemplateSource |
Includes template source into compilation
|
![]() | ![]() | Creates a shallow copy of the current (Inherited from ![]() ![]() |
![]() | ReferenceAssembly |
References assembly by its name if it is already not referenced
|
![]() | RegisterDefaultUsings |
Override to provide default using clauses
|
![]() | ![]() | Returns a string that represents the current object. (Inherited from ![]() |
![]() | UnReferenceAssembly |
Removes assembly reference by its name if it was already referenced
|
Extension Methods
Fields
Name | Description | |
---|---|---|
![]() | m_Assembly | |
![]() | m_AssemblyFileName | |
![]() | m_CodeCompilerErrors | |
![]() | m_Options | |
![]() | m_ReferencedAssemblies | |
![]() | m_ReferencedAssembliesSearchPath | |
![]() | m_Units |
Properties
Name | Description | |
---|---|---|
![]() | Assembly |
Returns compiled assembly or null if only source have been compiled when CompileCode=false;
|
![]() | AssemblyFileName |
Gets/sets filename for assembly, if null then assembly is created in-memory only
|
![]() | BaseTypeName |
Sets the name of base type that templates inherit from.
This type must directly or indirectly inherit from Template
|
![]() | CodeCompilerErrors |
Returns code compilation errors
|
![]() | CompileCode |
Indicates whether language compilation should be performed and Assembly be built
|
![]() | Compiled |
Indicates whether this instance was compiled
|
![]() | CompileUnitsWithErrors |
Returns compile units that have errors
|
![]() | Disposed |
Indicates whether this object was already disposed - the Dispose() has finished
(Inherited from DisposableObject.) |
![]() | DisposeStarted |
Indicates whether this object Dispose() has been called and dispose started but not finished yet
(Inherited from DisposableObject.) |
![]() | HasErrors |
Indicates whether some units have template compilation errors or code compiler errors exist
|
![]() | Item |
Returns a compile unit by template source or throws if it does not exist
|
![]() | LanguageName |
Gets the name of the language that this compiler supports, i.e. "C#"
|
![]() | LanguageSourceFileExtension |
Gets the name of the language source code file extension that this compiler supports, i.e. ".cs"
|
![]() | Namespace |
Sets the name of namespace that classes compiled into
|
![]() | Options |
Config options section used for compilation
|
![]() | ReferencedAssemblies |
Returns referenced assemblies
|
![]() | ReferencedAssembliesSearchPath |
Gets/sets path for referenced assemblies that do not have a path in their names
|
Explicit Interface Implementations
Name | Description | |
---|---|---|
![]() ![]() | IEnumerable GetEnumerator |
See Also