RazorParser Constructors

Definition

Overloads

RazorParser(RazorParser)

Initializes a new instance of RazorParser from the specified parser.

RazorParser(ParserBase, ParserBase, ITagHelperDescriptorResolver)

Initializes a new instance of RazorParser.

RazorParser(RazorParser)

Initializes a new instance of RazorParser from the specified parser.

C#
public RazorParser (Microsoft.AspNetCore.Razor.Parser.RazorParser parser);

Parameters

parser
RazorParser

The RazorParser to copy values from.

Applies to

ASP.NET Core 1.1 and ASP.NET Core 1.0
Product Versions
ASP.NET Core 1.0, 1.1

RazorParser(ParserBase, ParserBase, ITagHelperDescriptorResolver)

Initializes a new instance of RazorParser.

C#
public RazorParser (Microsoft.AspNetCore.Razor.Parser.ParserBase codeParser, Microsoft.AspNetCore.Razor.Parser.ParserBase markupParser, Microsoft.AspNetCore.Razor.Compilation.TagHelpers.ITagHelperDescriptorResolver tagHelperDescriptorResolver);

Parameters

codeParser
ParserBase

The ParserBase used for parsing code content.

markupParser
ParserBase

The ParserBase used for parsing markup content.

tagHelperDescriptorResolver
ITagHelperDescriptorResolver

The ITagHelperDescriptorResolver used to resolve TagHelperDescriptors.

Applies to

ASP.NET Core 1.1 and ASP.NET Core 1.0
Product Versions
ASP.NET Core 1.0, 1.1