MvcCSharpCodeGenerator 类

定义

public ref class MvcCSharpCodeGenerator : Microsoft::AspNetCore::Razor::CodeGenerators::CSharpCodeGenerator
public class MvcCSharpCodeGenerator : Microsoft.AspNetCore.Razor.CodeGenerators.CSharpCodeGenerator
type MvcCSharpCodeGenerator = class
    inherit CSharpCodeGenerator
Public Class MvcCSharpCodeGenerator
Inherits CSharpCodeGenerator
继承
MvcCSharpCodeGenerator

构造函数

MvcCSharpCodeGenerator(CodeGeneratorContext, String, String, GeneratedTagHelperAttributeContext)

属性

Context (继承自 CodeGenerator)
Host (继承自 CSharpCodeGenerator)
Tree (继承自 CSharpCodeGenerator)

方法

BuildAfterExecuteContent(CSharpCodeWriter, IList<Chunk>)
BuildAfterExecuteContent(CSharpCodeWriter, IList<Chunk>)

提供一个入口点,用于在执行内容) 到生成的 Razor 类后追加代码 (。

(继承自 CSharpCodeGenerator)
BuildClassDeclaration(CSharpCodeWriter)
BuildConstructor(CSharpCodeWriter)
CreateCodeWriter()

受保护以供测试。

(继承自 CSharpCodeGenerator)
CreateCSharpCodeVisitor(CSharpCodeWriter, CodeGeneratorContext)
CreateCSharpDesignTimeCodeVisitor(CSharpCodeVisitor, CSharpCodeWriter, CodeGeneratorContext)
Generate()
Generate() (继承自 CSharpCodeGenerator)

适用于