CSharpCodeGenerator 类

定义

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

构造函数

CSharpCodeGenerator(CodeGeneratorContext)

属性

Context (继承自 CodeGenerator)
Host
Tree

方法

BuildAfterExecuteContent(CSharpCodeWriter, IList<Chunk>)

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

BuildClassDeclaration(CSharpCodeWriter)
BuildConstructor(CSharpCodeWriter)
CreateCodeWriter()

受测试保护。

CreateCSharpCodeVisitor(CSharpCodeWriter, CodeGeneratorContext)
CreateCSharpDesignTimeCodeVisitor(CSharpCodeVisitor, CSharpCodeWriter, CodeGeneratorContext)
Generate()

适用于