ChunkHelper Class

Definition

Contains helper methods for dealing with Chunks

C#
public static class ChunkHelper
Inheritance
ChunkHelper

Fields

TModelToken

Token that is replaced by the model name in @inherits and @inject chunks as part of ChunkInheritanceUtility.

Methods

GetModelChunk(ChunkTree)

Returns the ModelChunk used to determine the model name for the page generated using the specified chunkTree

GetModelTypeName(ChunkTree, String)

Returns the type name of the Model specified via a ModelChunk in the chunkTree if specified or the default model type.

ReplaceTModel(String, String)

Returns a string with the <TModel> token replaced with the value specified in modelName.

Applies to

Product Versions
ASP.NET Core 1.0, 1.1