RoslynCompilationContext(CSharpCompilation) 构造函数

定义

构造类型的新实例 RoslynCompilationContext

public:
 RoslynCompilationContext(Microsoft::CodeAnalysis::CSharp::CSharpCompilation ^ compilation);
public RoslynCompilationContext (Microsoft.CodeAnalysis.CSharp.CSharpCompilation compilation);
new Microsoft.AspNetCore.Mvc.Razor.Compilation.RoslynCompilationContext : Microsoft.CodeAnalysis.CSharp.CSharpCompilation -> Microsoft.AspNetCore.Mvc.Razor.Compilation.RoslynCompilationContext
Public Sub New (compilation As CSharpCompilation)

参数

compilation
CSharpCompilation

CSharpCompilation 若要设置为属性,则为 Compilation

适用于