C# Class Razordex.PokemonHTMLViewBase

Show file Open project: segphault/Razordex

Public Methods

Method Description
Execute ( ) : void

Executes the template, writing output to the Write and WriteLiteral methods.

Not intended to be called directly. Call the Generate method instead.

Generate ( System writer ) : void

Executes the template, writing to the provided text writer.

GenerateString ( ) : string

Executes the template and returns the output as a string.

Protected Methods

Method Description
Write ( Action write ) : void

Invokes the action to write directly to the template output.

This is used for Razor helpers, which already perform any necessary HTML escaping.

Write ( object value ) : void

Writes values to the template output, HTML escaping them if necessary.

WriteLiteral ( string value ) : void

Writes literal values to the template output without HTML escaping them.

WriteTo ( System writer, object value ) : void Used by Razor helpers to HTML escape values.

Method Details

Execute() public abstract method

Executes the template, writing output to the Write and WriteLiteral methods.
Not intended to be called directly. Call the Generate method instead.
public abstract Execute ( ) : void
return void

Generate() public method

Executes the template, writing to the provided text writer.
public Generate ( System writer ) : void
writer System
return void

GenerateString() public method

Executes the template and returns the output as a string.
public GenerateString ( ) : string
return string

Write() protected method

Invokes the action to write directly to the template output.
This is used for Razor helpers, which already perform any necessary HTML escaping.
protected Write ( Action write ) : void
write Action
return void

Write() protected method

Writes values to the template output, HTML escaping them if necessary.
protected Write ( object value ) : void
value object
return void

WriteLiteral() protected method

Writes literal values to the template output without HTML escaping them.
protected WriteLiteral ( string value ) : void
value string
return void

WriteTo() protected static method

Used by Razor helpers to HTML escape values.
protected static WriteTo ( System writer, object value ) : void
writer System
value object
return void