Class AbpRazorTemplateCSharpCompiler
Inheritance
object
AbpRazorTemplateCSharpCompiler
Implements
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.Abp.TextTemplating.Razor
Assembly: Volo.Abp.TextTemplating.Razor.dll
Syntax
public class AbpRazorTemplateCSharpCompiler : ISingletonDependency
Constructors
AbpRazorTemplateCSharpCompiler(IOptions<AbpRazorTemplateCSharpCompilerOptions>)
Declaration
public AbpRazorTemplateCSharpCompiler(IOptions<AbpRazorTemplateCSharpCompilerOptions> options)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.Extensions.Options.IOptions<TOptions><AbpRazorTemplateCSharpCompilerOptions> | options |
Properties
Options
Declaration
protected AbpRazorTemplateCSharpCompilerOptions Options { get; }
Property Value
Type | Description |
---|---|
AbpRazorTemplateCSharpCompilerOptions |
Methods
CreateAssembly(string, string, List<MetadataReference>, CSharpCompilationOptions)
Declaration
public virtual Stream CreateAssembly(string code, string assemblyName, List<MetadataReference> references = null, CSharpCompilationOptions options = null)
Parameters
Type | Name | Description |
---|---|---|
string | code | |
string | assemblyName | |
System.Collections.Generic.List<T><MetadataReference> | references | |
Microsoft.CodeAnalysis.CSharp.CSharpCompilationOptions | options |
Returns
Type | Description |
---|---|
System.IO.Stream |
CreateSyntaxTree(string)
Declaration
protected virtual SyntaxTree CreateSyntaxTree(string code)
Parameters
Type | Name | Description |
---|---|---|
string | code |
Returns
Type | Description |
---|---|
Microsoft.CodeAnalysis.SyntaxTree |
GetCompilationOptions()
Declaration
protected virtual CSharpCompilationOptions GetCompilationOptions()
Returns
Type | Description |
---|---|
Microsoft.CodeAnalysis.CSharp.CSharpCompilationOptions |