Condividi tramite


CSharpCodeGenerator Classe

Definizione

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
Ereditarietà
CSharpCodeGenerator
Derivato

Costruttori

CSharpCodeGenerator(CodeGeneratorContext)

Proprietà

Context (Ereditato da CodeGenerator)
Host
Tree

Metodi

BuildAfterExecuteContent(CSharpCodeWriter, IList<Chunk>)

Fornisce un punto di ingresso per aggiungere codice (dopo l'esecuzione del contenuto) a una classe Razor generata.

BuildClassDeclaration(CSharpCodeWriter)
BuildConstructor(CSharpCodeWriter)
CreateCodeWriter()

Protetto per i test.

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

Si applica a