RazorEngineHost.DecorateCodeGenerator Method

Definition

Gets an instance of the code generator and is provided an opportunity to decorate or replace it

public:
 virtual Microsoft::AspNetCore::Razor::CodeGenerators::CodeGenerator ^ DecorateCodeGenerator(Microsoft::AspNetCore::Razor::CodeGenerators::CodeGenerator ^ incomingBuilder, Microsoft::AspNetCore::Razor::CodeGenerators::CodeGeneratorContext ^ context);
public virtual Microsoft.AspNetCore.Razor.CodeGenerators.CodeGenerator DecorateCodeGenerator (Microsoft.AspNetCore.Razor.CodeGenerators.CodeGenerator incomingBuilder, Microsoft.AspNetCore.Razor.CodeGenerators.CodeGeneratorContext context);
abstract member DecorateCodeGenerator : Microsoft.AspNetCore.Razor.CodeGenerators.CodeGenerator * Microsoft.AspNetCore.Razor.CodeGenerators.CodeGeneratorContext -> Microsoft.AspNetCore.Razor.CodeGenerators.CodeGenerator
override this.DecorateCodeGenerator : Microsoft.AspNetCore.Razor.CodeGenerators.CodeGenerator * Microsoft.AspNetCore.Razor.CodeGenerators.CodeGeneratorContext -> Microsoft.AspNetCore.Razor.CodeGenerators.CodeGenerator
Public Overridable Function DecorateCodeGenerator (incomingBuilder As CodeGenerator, context As CodeGeneratorContext) As CodeGenerator

Parameters

incomingBuilder
CodeGenerator

The CodeGenerator.

Returns

Either the same code generator, after modifications, or a different code generator.

Applies to