C# Class RazorEngine.Templating.TemplateBase

Provides a base implementation of a template.
Inheritance: System.MarshalByRefObject, ITemplate
Afficher le fichier Open project: tqc/RazorEngine Class Usage Examples

Méthodes publiques

Méthode Description
Clear ( ) : void

Clears the template.

Execute ( ) : void

Executes the compiled template.

Write ( object obj ) : void

Writes the specified object to the template result.

WriteLiteral ( string literal ) : void

Writes the specified literal to the template result.

WriteLiteralTo ( TextWriter writer, string literal ) : void

Writes a string literal to the specified TextWriter.

WriteTo ( TextWriter writer, object obj ) : void

Writes the specified object to the specified TextWriter.

Méthodes protégées

Méthode Description
TemplateBase ( ) : System.IO

Initialises a new instance of TemplateBase.

Method Details

Clear() public méthode

Clears the template.
public Clear ( ) : void
Résultat void

Execute() public méthode

Executes the compiled template.
public Execute ( ) : void
Résultat void

TemplateBase() protected méthode

Initialises a new instance of TemplateBase.
protected TemplateBase ( ) : System.IO
Résultat System.IO

Write() public méthode

Writes the specified object to the template result.
public Write ( object obj ) : void
obj object The object to write to the template result.
Résultat void

WriteLiteral() public méthode

Writes the specified literal to the template result.
public WriteLiteral ( string literal ) : void
literal string The literal to write to the template result.
Résultat void

WriteLiteralTo() public static méthode

Writes a string literal to the specified TextWriter.
public static WriteLiteralTo ( TextWriter writer, string literal ) : void
writer System.IO.TextWriter The writer.
literal string The literal to be written.
Résultat void

WriteTo() public static méthode

Writes the specified object to the specified TextWriter.
public static WriteTo ( TextWriter writer, object obj ) : void
writer System.IO.TextWriter The writer.
obj object The object to be written.
Résultat void