Class CompileUnit
Represents a compilation unit which is compiled by TemplateCompiler. Use TemplateCompiler.IncludeTemplateSource() method or pass sources to .ctor
Inheritance
System.Object
CompileUnit
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: NFX.Templatization
Assembly: NFX.dll
Syntax
public class CompileUnit
Properties
CompilationException
Returns an exception that was thrown during compilation
Declaration
public Exception CompilationException { get; }
Property Value
Type | Description |
---|---|
System.Exception |
CompiledSource
Returns source code in a language that particular TemplateCompiler derivative supports. Use TemplateCompiler.LanguageName to determine language polymorphicaly
Declaration
public string CompiledSource { get; }
Property Value
Type | Description |
---|---|
System.String |
CompiledTemplateType
Returns CLR type that compiler produced IF language source compilation was performed
Declaration
public Type CompiledTemplateType { get; }
Property Value
Type | Description |
---|---|
System.Type |
CompiledTemplateTypeName
Returns fully-qualified CLR type name that compiler produced
Declaration
public string CompiledTemplateTypeName { get; }
Property Value
Type | Description |
---|---|
System.String |
TemplateSource
References original template source such as a string for text-based templates or an image
Declaration
public ITemplateSource TemplateSource { get; }
Property Value
Type | Description |
---|---|
ITemplateSource |