TagHelperPrefixDirectiveChunkGenerator Class

A Microsoft.AspNetCore.Razor.Chunks.Generators.SpanChunkGenerator responsible for generating Microsoft.AspNetCore.Razor.Chunks.TagHelperPrefixDirectiveChunks.

Namespace
Microsoft.AspNetCore.Razor.Chunks.Generators
Assemblies
  • Microsoft.AspNetCore.Razor

Syntax

public class TagHelperPrefixDirectiveChunkGenerator : SpanChunkGenerator, ISpanChunkGenerator
class Microsoft.AspNetCore.Razor.Chunks.Generators.TagHelperPrefixDirectiveChunkGenerator

Constructors

TagHelperPrefixDirectiveChunkGenerator(System.String)

Initializes a new instance of Microsoft.AspNetCore.Razor.Chunks.Generators.TagHelperPrefixDirectiveChunkGenerator.

Arguments:prefix (System.String) – Text used as a required prefix when matching HTML.
public TagHelperPrefixDirectiveChunkGenerator(string prefix)

Methods

Equals(System.Object)
Return type:System.Boolean
public override bool Equals(object obj)
GenerateChunk(Microsoft.AspNetCore.Razor.Parser.SyntaxTree.Span, Microsoft.AspNetCore.Razor.Chunks.Generators.ChunkGeneratorContext)

Generates Microsoft.AspNetCore.Razor.Chunks.TagHelperPrefixDirectiveChunks.

Arguments:
public override void GenerateChunk(Span target, ChunkGeneratorContext context)
GetHashCode()
Return type:System.Int32
public override int GetHashCode()

Properties

Microsoft.AspNetCore.Razor.Chunks.Generators.TagHelperPrefixDirectiveChunkGenerator.Prefix

Text used as a required prefix when matching HTML.

Return type:System.String
public string Prefix { get; }