Dela via


MvcRazorHost.DecorateCodeParser(ParserBase) Method

Definition

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

public:
 override Microsoft::AspNetCore::Razor::Parser::ParserBase ^ DecorateCodeParser(Microsoft::AspNetCore::Razor::Parser::ParserBase ^ incomingCodeParser);
public override Microsoft.AspNetCore.Razor.Parser.ParserBase DecorateCodeParser (Microsoft.AspNetCore.Razor.Parser.ParserBase incomingCodeParser);
override this.DecorateCodeParser : Microsoft.AspNetCore.Razor.Parser.ParserBase -> Microsoft.AspNetCore.Razor.Parser.ParserBase
Public Overrides Function DecorateCodeParser (incomingCodeParser As ParserBase) As ParserBase

Parameters

incomingCodeParser
ParserBase

The code parser

Returns

Either the same code parser, after modifications, or a different code parser

Applies to