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

Represent as generic base class for all IPagerItemContentGenerator which generate IHtmlContent from simple string value.
Inheritance: IPagerItemContentGenerator
Show file Open project: sgjsakura/AspNetCore

Private Properties

Property Type Description

Public Methods

Method Description
GenerateContent ( PagerItemGenerationContext context ) : IHtmlContent

Generate the content for a specified pager item.

Protected Methods

Method Description
GenerateContentString ( PagerItemGenerationContext context ) : string

When be derived, generate the content string.

StringContentGenerator ( bool encodeText ) : JetBrains.Annotations

Initialize a new generator with specified information.

Method Details

GenerateContent() public method

Generate the content for a specified pager item.
public GenerateContent ( PagerItemGenerationContext context ) : IHtmlContent
context PagerItemGenerationContext The generation context.
return IHtmlContent

GenerateContentString() protected abstract method

When be derived, generate the content string.
protected abstract GenerateContentString ( PagerItemGenerationContext context ) : string
context PagerItemGenerationContext The generation context.
return string

StringContentGenerator() protected method

Initialize a new generator with specified information.
protected StringContentGenerator ( bool encodeText ) : JetBrains.Annotations
encodeText bool /// Indicate that whether the generated string content should be HTML encoded before be written to /// page. ///
return JetBrains.Annotations