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.
|
Method | Description | |
---|---|---|
Write ( Action |
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. |
protected WriteLiteral ( string value ) : void | ||
value | string | |
return | void |
protected static WriteTo ( System writer, object value ) : void | ||
writer | System | |
value | object | |
return | void |