C# 클래스 RazorEngine.Templating.TemplateBase

Provides a base implementation of a template.
상속: System.MarshalByRefObject, ITemplate
파일 보기 프로젝트 열기: tqc/RazorEngine 1 사용 예제들

공개 메소드들

메소드 설명
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.

보호된 메소드들

메소드 설명
TemplateBase ( ) : System.IO

Initialises a new instance of TemplateBase.

메소드 상세

Clear() 공개 메소드

Clears the template.
public Clear ( ) : void
리턴 void

Execute() 공개 메소드

Executes the compiled template.
public Execute ( ) : void
리턴 void

TemplateBase() 보호된 메소드

Initialises a new instance of TemplateBase.
protected TemplateBase ( ) : System.IO
리턴 System.IO

Write() 공개 메소드

Writes the specified object to the template result.
public Write ( object obj ) : void
obj object The object to write to the template result.
리턴 void

WriteLiteral() 공개 메소드

Writes the specified literal to the template result.
public WriteLiteral ( string literal ) : void
literal string The literal to write to the template result.
리턴 void

WriteLiteralTo() 공개 정적인 메소드

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.
리턴 void

WriteTo() 공개 정적인 메소드

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.
리턴 void