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