C# Class Sakura.AspNetCore.Mvc.Generators.CustomStringContentGenerator

Generate IHtmlContent from a custom string generator.
Inheritance: StringContentGenerator
显示文件 Open project: sgjsakura/AspNetCore

Private Properties

Property Type Description

Public Methods

Method Description
CustomStringContentGenerator ( string>.[ stringContentGenerator, bool encodeText ) : System

Initialize a new instance of CustomStringContentGenerator.

Protected Methods

Method Description
GenerateContentString ( PagerItemGenerationContext context ) : string

Generate the content string.

Method Details

CustomStringContentGenerator() public method

Initialize a new instance of CustomStringContentGenerator.
is null.
public CustomStringContentGenerator ( string>.[ stringContentGenerator, bool encodeText ) : System
stringContentGenerator string>.[ The string generator callback delegate.
encodeText bool Whether the format result should be HTML encoded before be written to page.
return System

GenerateContentString() protected method

Generate the content string.
protected GenerateContentString ( PagerItemGenerationContext context ) : string
context PagerItemGenerationContext The generation context.
return string