共用方式為


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()

適用於