CSharpCodeGenerator Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- Inheritance
- Derived
Constructors
CSharpCodeGenerator(CodeGeneratorContext) |
Properties
Context | (Inherited from CodeGenerator) |
Host | |
Tree |
Methods
BuildAfterExecuteContent(CSharpCodeWriter, IList<Chunk>) |
Provides an entry point to append code (after execute content) to a generated Razor class. |
BuildClassDeclaration(CSharpCodeWriter) | |
BuildConstructor(CSharpCodeWriter) | |
CreateCodeWriter() |
Protected for testing. |
CreateCSharpCodeVisitor(CSharpCodeWriter, CodeGeneratorContext) | |
CreateCSharpDesignTimeCodeVisitor(CSharpCodeVisitor, CSharpCodeWriter, CodeGeneratorContext) | |
Generate() |
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for